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 codes #485

Open
coot opened this issue Aug 21, 2024 · 0 comments
Open

Exit codes #485

coot opened this issue Aug 21, 2024 · 0 comments

Comments

@coot
Copy link

coot commented Aug 21, 2024

With error_code: normal stylish-haskell doesn't return a non-zero exit code if there are formatting errors. It does so when error_code: error_on_format. With the former, errors in all files are reported; with the latter, only the first one. This is not very useful when scripting or in CI where one wants to see all errors (especially if the --inplace option is used) but also error if there are any formatting errors.

error_code: normal should report a non-zero exit code if there was at least one error. If that would be accepted, renaming the option might also be a good idea (e.g., continue_on_error: Bool or something similar).

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