-
Notifications
You must be signed in to change notification settings - Fork 528
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
Add maxWarnings CLI option #568
Conversation
Exit with non-zero value when the number of warnings is greater than the maxWarning option. Easily fail CI builds without needing to update all sass-lint rules to errors. Usage: `sass-lint --max-warnings 0 -c sass-lint.config.yml sass/**/*.scss` This closes sasstools#567 Based on the eslint maxWarnings CLI option: * http://eslint.org/docs/user-guide/command-line-interface#options
Thanks, I'll have a look over this later 👍 closes #567 |
Hi @house9 Sorry for the delay here, we just finally merged all of our 1.6 work into develop which will cause a few conflicts for this PR. Would you mind updating it now and then we can look to get it merged in. Thanks! 👍 |
# Conflicts: # tests/cli.js
|
||
return warningCount > 0 && warningCount > program.maxWarnings; | ||
}; | ||
|
||
var detectPattern = function (pattern) { |
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.
Issue found: Function 'anonymous' has a complexity of 5.
@DanPurdy merge conflicts have been resolved, Thanks. |
@house9 sorry for the delay here. This looks good to me, if you could update with the latest progress from develop then we can merge this in. Thanks! 👍 |
Exit with non-zero value when the number of warnings is greater than the maxWarning option.
see #567
DCO 1.1 Signed-off-by: Jesse House jesse.house@codingzeal.com