-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix wrong usage of Array#reject!
: this might return nil
#612
Conversation
This is the error log where I found this bug:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you so much!
I see. I understand why you use the "random mode" as default on your custom action. |
About
I found a behavior that seems to be a bug and would like to correct it.
In some condition, the
#all_rules
might raiseNoMethodError
.Details
Why?
How to reproduce
I coudn't write test about this behavior, but let me share how to reproduce this:
Modify the example .rubocop_todo.yml:
Then run rspec:
Other concerns
I found this while investigating another problem. The recent rubocop has
--no-offense-counts
option and it's enabled in my project, so rubocop_challenger doesn't work well there...