Description
Bug description
Attempt to use --fail-on=W
, or evaluation=
, etc., and see they don't take into account messages from PyLinter itself such as unknown-option-value
.
Command used
pylint pylint.lint --enable=unknown --fail-on=W --evaluation='2 if warning else 10'
Pylint output
jwalls@Jacobs-MacBook-Air-4 pylint % pylint pylint.lint --enable=unknown --fail-on=W --evaluation='2 if warning else 10'
************* Module Command line
Command line:1:0: W0012: Unknown option value for '--enable', expected a valid pylint message and got 'unknown' (unknown-option-value)
-------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 9.98/10, +0.02)
jwalls@Jacobs-MacBook-Air-4 pylint % echo $?
0
Expected behavior
non-zero exit code, score less than 10
Pylint version
dev
other
Found while investigating #8457
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment