Skip to content

Not posible to disable unknown-option-value #10188

Open
@moylop260

Description

Bug description

Create a python file my_pylint_test.py with the following content:

# pylint: disable=class-camelcase

Configuration

# .pylintrc file
[MESSAGES CONTROL]
disable=all
enable=consider-using-dict-items

Command used

pylint my_pylint_test.py

Pylint output

************* Module my_pylint_test
my_pylint_test:1:0: W0012: Unknown option value for 'disable', expected a valid pylint message and got 'class-camelcase' (unknown-option-value)

Expected behavior

Since that disable option is configured withall

It should omit other checks different from already enabled

Pylint version

pylint 3.3.3
astroid 3.3.8
Python 3.13.1 (main, Dec  3 2024, 17:59:52) [Clang 16.0.0 (clang-1600.0.26.4)]

OS / Environment

MacOSX Sequoia 15.2 (24C101)

Additional dependencies

astroid==3.3.8
dill==0.3.9
isort==5.13.2
mccabe==0.7.0
platformdirs==4.3.6
pylint==3.3.3
tomlkit==0.13.2

Metadata

Assignees

No one assigned

    Labels

    Needs triage 📥Just created, needs acknowledgment, triage, and proper labelling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions