-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
RFE: possibility to change category of a message in config #3251
Comments
Yes, In something I want to change message level to warning. so I can get precise b = 1, R1707: Disallow trailing comma tuple (trailing-comma-tuple) |
I'm going to close as won't fix because the change would be humongous and would yield strange results like the msgid not matching the actual reported category. Also it's possible to deal with this with a combination of |
Interesting, I have missed this. I assume you mean |
Yes, exactly. Available for pylint above |
`fail-on` is available since pylint 2.9.0. https://pylint.pycqa.org/en/latest/user_guide/configuration/all-options.html#fail-on pylint-dev/pylint#3251 (comment)
`fail-on` is available since pylint 2.9.0. https://pylint.pycqa.org/en/latest/user_guide/configuration/all-options.html#fail-on pylint-dev/pylint#3251 (comment)
`fail-on` is available since pylint 2.9.0. https://pylint.pycqa.org/en/latest/user_guide/configuration/all-options.html#fail-on pylint-dev/pylint#3251 (comment) Co-authored-by: J. Nick Koston <nick@koston.org>
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
anduse-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.
The text was updated successfully, but these errors were encountered: