Skip to content

Option to regard invalid configuration as an error #7170

Open
@ollik1

Description

@ollik1

Current problem

Currently, if unrecognized options are used, pylint prints a warning message but continues and eventually returns 0. This can be problematic especially when running pylint in CICD pipelines and pylint updates in registry.

.pylintrc:1: [E0015(unrecognized-option), ] Unrecognized option found: optimize-ast, files-output, no-space-check, function-name-hint, variable-name-hint, const-name-hint, attr-name-hint, argument-name-hint, class-attribute-name-hint, inlinevar-name-hint, class-name-hint, module-name-hint, method-name-hint

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Desired solution

Return non-zero value when unrecognized options are found or provide an option for enabling this.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions