-
-
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
[unknown-option-value] False negative after --disable=all
#9403
Comments
Reproduced @ 51c28bc pylint --enable=missnig-docstring pylint/checkers/utils.py
************* Module Command line
Command line:1:0: W0012: Unknown option value for '--enable', expected a valid pylint message and got 'missnig-docstring' (unknown-option-value)
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
|
--disable=all
As I also ran into this issue I started debugging it to check for a fix. The reason seems to be that
the results is again as expected. While I understand this behavior for Would it make sense to have internal pylint errors not being affected by |
Yep, exactly! This issue is ready for a contributor to tackle. |
Bug description
The option
--enable
does not give an error when an unknown error code is used. It should give an error.What I was trying is to enable just a group of warnings. I tried
W1
andW1*
. No error but also no warning. But the code does have some W1203 problems in it.Configuration
No response
Command used
Pylint output
Expected behavior
Give an error.
Pylint version
OS / Environment
Debian 12 arm64
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: