-
Notifications
You must be signed in to change notification settings - Fork 530
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
Make "max-warnings" a proper option #856
Comments
I'll have a little crack at writing this myself. Although if I can't get the bulk of the way there tonight I'll probably abandon it. 😝 |
Hi @nottrobin, |
Thanks for the quick response @DanPurdy. So currently, if I were to set ul {
margin-left: 1rem;
margin-bottom: 1rem;
} and run $ sass-lint
...
Error: 1 errors were detected in
- scss/_base_lists.scss
... Similarly, if I have a var sassLint = require('gulp-sass-lint');
gulp.task('lint:sass', function() {
return gulp.src('scss/**/*.s+(a|c)ss')
.pipe(sassLint())
.pipe(sassLint.format())
.pipe(sassLint.failOnError())
}); And I run this target with gulp, I see an equivalent error, with an exit code of $ gulp lint:sass
...
[18:10:23] 'lint:sass' errored after 1.11 s
[18:10:23] Error in plugin 'sass-lint'
Message:
1 errors detected in _base_lists.scss We use I would expect very similar behaviour from a Currently if I run I've had a go at developing this, in #857, so you can see what I mean. It's now ready and all checks have passed. |
I have just discovered that this won't solve my problem with gulp-sass-lint, as instead of using sass-lint's Once this is solved in sass-lint, I'd be happy to submit a follow-up PR to gulp-sass-lint to make use of the native |
The command-line tool provides the
--max-warnings
option. This is very useful for preventing a codebase from deteriorating and generating ever more warnings.However, we can't use this feature for vanilla-framework as we run sass-lint through gulp-sass-lint in our
gulpfile.js
instead of using the CLI.As far as I can tell there's no way to set
program.maxWarnings
through any other method. It would be most helpful to us if this could be an option in the same sense asformatter
et al., so we can set it within the.sass-lint.yml
config file as follows:The text was updated successfully, but these errors were encountered: