-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
"Shadowing outer local variable" is not smart enough #1518
Comments
RuboCop behaves the same way as |
@jonas054 but for similar cases it will only lead to switching off an inspection. It's useless. I don't want to use two different names for one object. Who wants? |
I think the default behavior should be the same as |
At least the RuboCop inspection can the turned off (unlike the one in MRI). :-) As @jonas054 - PR welcome. I don't think we'll be able to allocate any attention to this in the foreseeable future, so I'm closing the issue. |
I have a case of using ruby blocks like this:
In this case
package
variable is set only after block will eval and return it's value, so shadowing doesn't take place. Should we fix the behavior of rubocop here?The text was updated successfully, but these errors were encountered: