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
Currently, Style/SelectByRegexp recognizes =~ but not !~:
Style/SelectByRegexp
=~
!~
list.select { |n| n =~ /good/ } # cop recommends list.grep(/good/) ✔️ list.select { |n| n !~ /bad/ } # cop ignores 😔
Ideally, it would recommend list.grep_v(/bad/)
list.grep_v(/bad/)
The text was updated successfully, but these errors were encountered:
[Fix rubocop#11219] Make Style/SelectByRegexp aware of !~ method
796bbed
Fixes rubocop#11219. This PR makes `Style/SelectByRegexp` aware of `!~` method.
[Fix #11219] Make Style/SelectByRegexp aware of !~ method
658d1bc
Fixes #11219. This PR makes `Style/SelectByRegexp` aware of `!~` method.
Successfully merging a pull request may close this issue.
Currently,
Style/SelectByRegexp
recognizes=~
but not!~
:Ideally, it would recommend
list.grep_v(/bad/)
The text was updated successfully, but these errors were encountered: