We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails/RedundantEqualityComparisonBlock
Rails/RedundantEqualityComparisonBlock could be enhanced to recognize blocks that perform regex matching:
# bad list.all? { |item| item =~ /pattern/ } list.all? { |item| /pattern/.match? item } # good list.all?(/pattern/)
The text was updated successfully, but these errors were encountered:
RedundantEqualityComparisonBlock
=~
match?
Update Changelog
f6fa98b
#339 has been feature changed to #347.
Successfully merging a pull request may close this issue.
Rails/RedundantEqualityComparisonBlock
could be enhanced to recognize blocks that perform regex matching:The text was updated successfully, but these errors were encountered: