New issue
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
[Style/SelectByRegexp] undefined method lvar_type?
for nil:NilClass
#10180
Comments
Fixes rubocop#10180. This PR fixes an error for `Style/SelectByRegexp` when using `match?` without a receiver.
So quick @koic, thank you so much. 🥰 Small question, are you testing the new versions on large codebase, or are you looking to do so? |
Occasionally I check with large OSS and proprietary code, but these rules are different, so the detection (or not detection) is different. If you have any other problems you find, please open issues 😃 |
…regexp [Fix #10180] Fix an error for `Style/SelectByRegexp`
Okay, thanks a lot again @koic ✌️ |
Expected behavior
Rubocop should not fail on following code:
Actual behavior
Rubocop
Style/SelectByRegexp
cop is failling.Steps to reproduce the problem
You can use the following code:
RuboCop version
The text was updated successfully, but these errors were encountered: