-
-
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
Style/VariableName doesn't seem to work with method parameters #2335
Comments
Makes sense. Let |
This still isn't catching bad variable names in arguments passed to a method, and it doesn't catch bad |
Created issue: #7275 |
I don't know if this is intended behaviour, but if it is, I think it should be changed (unless there's a specific cop for that, in which case I'd really like to know which it is, because I couldn't find any).
If I have the following method in a ruby script:
Rubocop will report 3 offenses from this method:
But I was expecting
Style/VariableName
to also detect offenses in parameters names, like this:This is the original method I had for which rubocop is reporting no offense at all:
I installed rubocop straight from master and it still reports no offense.
Here is my
rubocop -V
:Thanks in advance.
The text was updated successfully, but these errors were encountered: