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

Use multiple exit status codes #166

Closed
jakecraige opened this issue Oct 23, 2015 · 4 comments
Closed

Use multiple exit status codes #166

jakecraige opened this issue Oct 23, 2015 · 4 comments

Comments

@jakecraige
Copy link
Contributor

Currently SwiftLint exits with a 1 error code when it dies because something is invalid(path, config, etc) OR if there are serious violations. What do you think about exiting with a different code on failing because of violations vs. invalid params?

This would be useful when running SwiftLint within another script and making decisions based on the response. Currently I have no way to tell if it's failing because of violations or invalid data.

@kylef
Copy link

kylef commented Oct 26, 2015

This will also be helpful for any vim syntastic plugin since you'd want to show swiftlint errors different to linting responses.

@jpsim
Copy link
Collaborator

jpsim commented Nov 2, 2015

Agreed! Perhaps errors should exit with code 2 and warnings (in strict mode) could return 3?

@picaso
Copy link

picaso commented Mar 8, 2016

Hi! Any timeframe on this enhancement? Thanks.

@marcelofabri
Copy link
Collaborator

Fixed in #584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants