Skip to content

[Proposal] Ability to ignore certain types of commented-out code in ERA001 #6019

@tylerlaprade

Description

@tylerlaprade

We have quite a few of these scattered around our codebase. T201 reminds us if we forget to comment them back out after we're done debugging, but I wish I could avoid the warning while they're commented.
image
I tried task-tags=["TODO", "print"], but this didn't work since there's no space after the print. I'd like to see either parens added to the delimiter for task-tags exclusions, or a separate setting added for allowed functions in commented-out code, please.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-decisionAwaiting a decision from a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions