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 for camelCase and unused argument name conflict #2759
Conversation
Forgot to explicitly link to the issue, #2758 |
There should always be tests. Which was the cop which was (erroneously) failing before? You could add a test case for that cop, which confirms that the code which previously failed doesn't fail any more. |
I was originally thinking that a combination the Style/VariableName cop and the relevant Lint/UnusedMethodArgument, Lint/UselessAssignment or Lint/UnusedBlockArgument cop was responsible (which is why I was unsure where to put tests). Now that I come back to it though it doesn't really have anything to do with the lint cops directly. I'll add a couple tests to the VariableName cop. |
Okay, I've added a pair of tests to the variable name cop and squashed all the commits down to one. |
Looks good. Just update the commit message to match our commit messages style - |
fa245e0
to
13d5159
Compare
Would you mind rebasing this one more time? I didn't see your update and merged another PR before this one. |
No problem - should be good to go once Travis confirms it again. |
Fix for camelCase and unused argument name conflict
👍 |
Previously, the the behavior was something like the following:
New behavior should be:
Please let me know if there an appropriate place to add a test(s) for this and I'd be happy to add them. I looked at the existing tests and it doesn't look like they test any integration like this (and this change passes existing unit tests).