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.
We've just received a dependabot PR for 1.54.0 and the cop
Style/ReverseFindraises warnings for collections that do not implementrfind, in particular in Rails apps forActiveRecord::AssociationRelationbut alsoNokogiri::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.