Skip to content

Score, fail-on, fail-under, etc ignores messages emitted by PyLinter itself #9059

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

Metadata

Labels

Bug 🪲Needs PRThis issue is accepted, sufficiently specified and now needs an implementation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions