Skip to content

Lots of false Style/ReverseFind warnings in Rails #798

@robingram

Description

@robingram

We've just received a dependabot PR for 1.54.0 and the cop Style/ReverseFind raises warnings for collections that do not implement rfind, in particular in Rails apps for ActiveRecord::AssociationRelation but also Nokogiri::XML::NodeSet, as well as potentially other examples. This means that we have to ignore those errors on either a per line or file basis. It feels like this cop is too much of a blunt instrument at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions