-
-
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
Implement a cop which tracks _
-prefixed variables/params that are actually used
#934
Comments
@yujinakayama Something else we might consider - an offense for unused block and method params: def something(x)
# x is not used
end
hash.each { |k, v| puts k } I guess such a check might be useful. |
@bbatsov My concern about unused arguments is that sometimes people have no control on them when overriding methods of superclass or conforming to some protocols. In that case, should we force users name the arguments with |
On Wednesday, April 9, 2014, Yuji Nakayama [email protected] wrote:
Best Regards, |
👍 |
This came up in #931:
The text was updated successfully, but these errors were encountered: