-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
unknown-option-value should result in non-zero exit code #8457
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
If I remember correctly it was a conscious decision in #6824 (comment), we can reopen the discussion here. |
The main issue is that it's surprising. I can't think of any tools worth using which treat unknown configuration items as anything other than an error. Also, the warning message can easily be missed. At least in my case pylint is only one of several dozen tools I use every day, and combing the logs of each of them is unfeasible. This is made worse by the fact that some tools (like |
Right, it also sounds like a breaking change we can do with 3.0 approaching. |
@jacobtylerwalls just pointed me to this issue. FWIW - I'm heavily supportive of having issues discovered while parsing a configuration throw a non-zero exit code. Glad it's going to be part of v3 |
Bug description
Unknown
disable
orenable
values (on the command line, inpyproject.toml
, or in.pylintrc
) do not trigger a non-zero exit code when using the default configuration.test.py
which passes default pylint rules:Configuration
No response
Command used
Pylint output
Expected behavior
The exit code should be non-zero.
Pylint version
OS / Environment
NixOS 22.11
Additional dependencies
The text was updated successfully, but these errors were encountered: