Skip to content

New rule: no-commented-out-tests #261

@kangax

Description

@kangax

There's already a rule to catch disabled tests. In our codebase, I'm seeing cases where people disable tests by commenting them out. While this could be easily caught during code reviews, it'd be nice to disallow this via a rule before it even makes it to the review.

Implementation-wise, we could probably detect cases of describe/it/etc. within comments and warn then.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions