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
private method 'select' called for true:TrueClass #11088
Labels
Comments
Alagaesia93
changed the title
private method `select' called for true:TrueClass
private method 'select' called for true:TrueClass
Oct 20, 2022
Can you provide a reproducible .rubocop.yml? |
Sure! Here it is
If needed I can provide also rubocop_todo.yml, but it's 1200 lines. We inherited a project that had no rubocop for years and slowly trying to get rid of all the alerts. |
koic
added a commit
to koic/rubocop
that referenced
this issue
Oct 21, 2022
…true` Fixes rubocop#11088. This PR fixes an error when specifying `SuggestExtensions: true`. It's no wonder users think they can set `SuggestExtensions: true` when they can specify `SuggestExtensions: false`. So, suggest default extensions if `SuggestExtensions: true`. Anyway, it shouldn't be an error.
8 tasks
Thank you for the providing. I can reproduce it and opened #11096. |
bbatsov
pushed a commit
that referenced
this issue
Oct 21, 2022
Fixes #11088. This PR fixes an error when specifying `SuggestExtensions: true`. It's no wonder users think they can set `SuggestExtensions: true` when they can specify `SuggestExtensions: false`. So, suggest default extensions if `SuggestExtensions: true`. Anyway, it shouldn't be an error.
@koic you're awesome. 3 days of turnaround, congrats and thank you so much! |
@Alagaesia93 You are welcome! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bundle exec rubocop raises
private method 'select' called for true:TrueClass
Expected behavior
Rubocop should behave normally, show errors / lint, etc
Actual behavior
After running
bundle exec rubocop
I have the following stacktraceSteps to reproduce the problem
Update Rubocop to version 1.37.0
run bundle exec rubocop
See the error in CLI
RuboCop version
The text was updated successfully, but these errors were encountered: