Skip to content
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

Have --max-warnings better reflect its name #89

Merged
merged 2 commits into from
Dec 20, 2018
Merged

Have --max-warnings better reflect its name #89

merged 2 commits into from
Dec 20, 2018

Conversation

nventuro
Copy link
Contributor

Currently, a run with --max-warnings 0 always fails, and max-warnings 1 only succeeds if there are no warnings.

I changed the behavior and updated the description to better reflect the expected behavior.

@coveralls
Copy link

coveralls commented Dec 19, 2018

Coverage Status

Coverage remained the same at 99.526% when pulling 77e1f68 on nventuro:patch-3 into 8726e30 on protofire:master.

solhint.js Outdated
@@ -17,7 +17,7 @@ function init() {
.option('-f, --formatter [name]', 'report formatter name (stylish, table, tap, unix)')
.option(
'-w, --max-warnings [maxWarningsNumber]',
'number of warnings to trigger nonzero exit code'
'number of allowed warnings to not trigger nonzero exit code'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't something in the fashion of number of allowed warnings actually easier to read?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left the original comment about a nonzero exit code to avoid being too opinionated, but I do think your description should be enough.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Let's aim for that then.

@fvictorio fvictorio merged commit f389547 into protofire:master Dec 20, 2018
@nventuro nventuro deleted the patch-3 branch December 20, 2018 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants