-
Notifications
You must be signed in to change notification settings - Fork 188
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
Advanced exit status handling? #54
Comments
I think it would be best to make PHP_CodeSniffer use the generally accepted Posix exit codes: http://tldp.org/LDP/abs/html/exitcodes.html However, I would be open to adding an option for formatters that decide to go rogue with their exit codes. |
I totally agree with you. I opened issue on PHP_CodeSniffer squizlabs/PHP_CodeSniffer#1359 |
They are not interested in fixing it. How about adding an optional callback function which validates the exit codes? |
An optional callback could be created, but it will require some work since Neoformat currently uses Here is the relevant doc:
|
The
so it should not be too much work. |
See new config variables: |
I was looking on how to add support for PHP_CodeSniffer formatting but it uses non zero exit codes for non errors:
https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.0.0RC3
I according to this exit codes 1 and 2 should be whitelisted from the neoformat error handling.
The text was updated successfully, but these errors were encountered: