Skip to content

RFE: possibility to change category of a message in config #3251

Closed
@scop

Description

Is your feature request related to a problem? Please describe

As discussed in #3250, an option to change the category of a message would be useful.

My first use case would be to exit with a nonzero status if some (currently) informational messages are emitted, e.g. useless-suppression and use-symbolic-message-instead.

A secondary use case I can think of would be to lower the severity of a warning or an error message to informational. The difference of this compared to disabling messages is that the messages would be displayed in the output, but not cause a nonzero exit.

Describe the solution you'd like

Configurabie categories/severity levels for messages, including their effect on the exit status.

Additional context

I gather the categories are currently kind of hardwired to the messages identifiers, so maybe it would be good to not change them but just their "effect" so there's no confusion about what is being referred to in online discussions etc.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions