Skip to content

elvis.config: implement warnings_as_errors #488

@kivra-pauoli

Description

@kivra-pauoli

Is your feature request related to a problem? Please describe

Now that we have Elvis -level checks (like the config. checks implemented by @bormilan) I think a good addition to the elvis.config rules would be (false by default) warnings_as_errors where the goal would be to stop execution prior to rule handling if there's warnings.

Another warning we already have in place is "... yielded none" which could benefit from this.

Describe the solution you'd like

An elvis.config -level option warnings_as_errors (:: boolean()) that'd stop execution prior to analysis if warnings were emitted prior to it.

Describe alternatives you've considered

None yet. But we can always do a grep and exit.

Additional Context

n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions