Skip to content

Exit codes #485

@coot

Description

@coot

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions