-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
False positive for Performance/BindCall #464
Comments
|
Oh, I did not realise I was getting this functionality from a gem, nevermind https://github.com/thoughtbot/shoulda-context/blob/main/lib/shoulda/context/proc_extensions.rb |
Thanks for the context, that's a blast from the past. Apparently rails removed that in 4.1. Also see |
gets turned into
but
block
doesn't have abind_call
method because it isn't a method, so this throwsNoMethodError: undefined method
bind_call' for an instance of Proc`Expected behavior
Should ignore
bind
methods called on block parameters.Actual behavior
Generates invalid code (see above)
Steps to reproduce the problem
See example above
RuboCop version
The text was updated successfully, but these errors were encountered: