question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: set non-zero exit status if one or more lint errors

See original GitHub issue

First 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:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
escattonecommented, Apr 10, 2017

Thanks so much @RyanZim !

0reactions
RyanZimcommented, Apr 10, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found