-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
revise validate-extension-inputs.js to detect problems with percent i… #138
base: master
Are you sure you want to change the base?
revise validate-extension-inputs.js to detect problems with percent i… #138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really helpful. One simple change is to replace all the console.log
with process.stdout.write
. I think it's a bit clearer for command line scripts. I wouldn't use process.stderr because it isn't an error in the script itself.
Also, would it make sense to rename the script 'validate-inputs.js' as it's not just for extensions any more.
); | ||
} catch (err) { | ||
numLocaleErrors++; | ||
console.error(err.message + '\n'); // eslint-disable-line no-console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.error(err.message + '\n'); // eslint-disable-line no-console | |
process.stdout.write(err.message + '\n'); |
It's better to use process.stdout
for this type of script (also doesn't trigger eslint)
@chrisgarrity, we're assigning this to you to decide what to do with this one! Hope it's helpful! |
Resolves #137
Changes