Skip to content

Lots of false Style/ReverseFind warnings in Rails #798

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.

Activity

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

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