Skip to content
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

camelCase variable names conflict with UnusedMethodArgument #2758

Closed
mmcguinn opened this issue Feb 2, 2016 · 0 comments
Closed

camelCase variable names conflict with UnusedMethodArgument #2758

mmcguinn opened this issue Feb 2, 2016 · 0 comments

Comments

@mmcguinn
Copy link
Contributor

mmcguinn commented Feb 2, 2016

Simple (contrived) example:

Use camelCase for variable names.
                def self.foo(_dc)
Unused method argument - body. If it's necessary, use _ or _body as an argument name to indicate that it won't be used. You can also write as foo(*) if you want the method to accept any arguments but don't care about them.
                def self.foo(dc)

It looks like the camelCase detector is getting tripped up on any underscores at all, including those attempting to mark unused variables/arguments. I also tried multi-part names (like 'testName' vs. '_testName') but got the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant