-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
2.7.3 regression ignores all disabled warnings #4265
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
Comments
Please try reformatting your
The |
@Pierre-Sassoulas f501b87 seems to cause this behavior. My suggestion works, so I'm not sure how to best deal with it. I used this for testing. Python file # pylint: disable=unused-import,import-error,missing-docstring
import const
import typing [MESSAGES CONTROL]
disable=
C0111,missing-docstring,
C0302,too-many-lines,
C0330,bad-continuation,
C0411,wrong-import-order, pylint --rcfile customrc a.py After the commit, it outputs a |
I have the following config for
Pylint generates a warning W0703 that should have been ignored on the following file
Removing Pylint probably is failing silently when it encounters Running on command line confirms this,
throws a |
My bad, I did not add a functional test for disabling with pylintrc when I refactored this. I'm going to release |
* Fix ignores all disabled warnings #4265 * Update changelog and prepare 2.7.4
@cdce8p Is there any chance (or how if already possible) this kind of thing can be detected and flagged as warning? |
I'm working on it right now @fmigneault :) |
Steps to reproduce
Moving from
2.7.2
to2.7.3
, my repo goes from no error to hundreds of problems.I didn't go through all of them, but many (if not all) seem to be related to ignored errors.
My config: https://github.com/Ouranosinc/Magpie/blob/master/.pylintrc
Current behavior
All these errors are flagged, when they are not just a patch version before.
Expected behavior
No more warning/errors than before, as code didn't change at all.
pylint --version output
Result of
pylint --version
output:The text was updated successfully, but these errors were encountered: