Feature request: set non-zero exit status if one or more lint errors
See original GitHub issueFirst of all, thanks for this project! We’re going to use it for linting our EJS templates which are part of MDN (see https://github.com/mozilla/kumascript/pull/152).
We have one request though. It’d be nice if the exit status from cli.js would be set to a non-zero value on one or more lint errors, so we can use it to make pass/fail decisions. Is this something you all are planning on adding? If not, would you be willing to consider a PR if I submit one?
Cheers!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
option to set non-zero exit code when autofixing ... - GitHub
Scenario: When running eslint in a pre-commit hook against files which are staged in git, I want to automatically fix issues with --fix, ......
Read more >How to get non-zero exit status with lintr::lint() in order to fail a ...
The lintr::lint() function returns results in a list with class "lints" . You have issues if its length is greater than zero, so...
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >pre-commit
For example scss-lint is a linter for SCSS written in Ruby. ... The repository mapping tells pre-commit where to get the code for...
Read more >How to Exit When Errors Occur in Bash Scripts - Intoli
Putting this at the top of a bash script will cause the script to exit if any commands return a non-zero exit code....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks so much @RyanZim !
Note that you’ll need to upgrade to v0.3.0 for this change. https://github.com/mozilla/kumascript/blob/master/package.json#L27