You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm thinking at the very least we want to be notified if a variable or argument is unused, because maybe someone forgot to remove it. Not sure if RuboCop supports a message to notify someone that something is unused.
There's a separate notification for an unused variable, and I agree that one makes sense. I'd also be happy with a “this argument is unused, did you mean to remove it?” notification. It's the “you should prefix this” part that I disagree with.
Hound suggests renaming unused method arguments, e.g.:
This isn't in the thoughtbot Ruby style guide. The closest thing in the guides is for block parameters:
The text was updated successfully, but these errors were encountered: