-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add disclaimer to doc template for informational messages clarifying they don't affect score/exit code by default #9171
Comments
That would be the |
Thanks for your quick answer and the hint to the --fail-on option. |
I can see it being nice to adjust the message page template to add a disclaimer on all the Informational messages that they aren't included in the score by default (and thus won't cause a failure on CI). |
I've tested with --fail-on and pylint then returns with exit code 1. |
|
In pylint in this case there is this special handling in run.py:
The pylint_runner just relies on this msg_status.
So my question here for pylint would be if pylint should maybe return non-zero in its msg_status if e.g. --fail-on=useless-suppression is specified. |
I think the use case for pylint runner does not exists anymore now that the |
Thanks for pointing me to the --recursive option. It seems to work so far. |
I'm not sure such an option exists, did you try |
Question
I'd like to treat messages like I0021 as warnings in my CI system so that the pylint_runner would return a non-zero exit code.
I have enabled useless-suppression in .pylintrc and on the console I get the I0021 message printed properly.
But the pylint_runner still returns 0 as exit code so that the CI job does not detect this as a warning/info/error.
Is there a way to let the pylint_runner return non-zero for e.g. enabled I0021 messages?
Thanks in advance for any help
Documentation for future user
Could be added e.g. here : https://pylint.readthedocs.io/en/latest/user_guide/messages/information/useless-suppression.html#useless-suppression-i0021
Or more generic somewhere where the informational messages like I00xx are explained
Additional context
No response
The text was updated successfully, but these errors were encountered: