Skip to content

Retire Performance/Casecmp cop #240

Closed
@parkerfinch

Description

@parkerfinch

This follows up on the ideas generated in #100.

It is confusing to have this cop enabled. Even when the autocorrection is marked as unsafe, the cop still directs people to use casecmp(...).zero?, which is incorrect in non-ascii use cases.

This issue pairs with rubocop/rubocop#9753, where I'm hoping we can create a Linting cop to suggest using casecmp?.

Metadata

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