-
-
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
on_const
not being called for second arg of return
#3223
Comments
Looks like this is a bug in traversal.rb where |
Sure, seems like a simple PR. |
@jonas054 where are the tests for |
Seems we don't have any. Except that Traversal is so central it's included in pretty much all the tests. |
Ok. I just picked a random cop that was using |
Expected behavior
on_const
is called for this programActual behavior
on_const
isn't calledSteps to reproduce the problem
Write a rubocop rule with a
on_const
and see it isn't called forB
.RuboCop version
Include the output of
rubocop -V
:The text was updated successfully, but these errors were encountered: