Skip to content

RFE: warn about disables using identifiers, promote symbolic names #3250

Closed
@scop

Description

Is your feature request related to a problem? Please describe

Would be nice to have a way to pylint emit warnings for pylint disable=... lines that use message identifiers as opposed to their symbolic names in code. The symbolic names can mostly be just understood when reading related code, whereas identifiers require one to look them up.

Describe the solution you'd like

A warning message if one uses for example # pylint disable=W0612 containing a suggestion to use disable=unused-variable instead.

Additional context

I think I can have a look at implementing this sometime unless someone beats me to it, but posting this RFE to probe acceptability/desirability first.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions