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

Exit with error code when encountering issues #36

Closed
felixLam opened this issue Mar 6, 2017 · 0 comments
Closed

Exit with error code when encountering issues #36

felixLam opened this issue Mar 6, 2017 · 0 comments

Comments

@felixLam
Copy link
Contributor

felixLam commented Mar 6, 2017

Right now elm-analyse always exits with status 0.

This makes it more difficult to run it in a CI setting where we want to mark a build as unstable for certain conditions.

It would be nice if the exit code was only 0 for runs without encountering any issues.

At a minimum it should be non-zero when encountering issues. Nice to have would be a configurable threshold for "unstable"/"failed". We could then exit with status code 1 if any issues were encountered and status code 2 if the threshold it exceeded.

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

No branches or pull requests

1 participant