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
There's a configuration option, IgnoreEmptyMethods, which defaults to true. If you set this to false, it will report an offense on the method definition.
The disparity between an instance method- and class method definition looks like a bug though.
Expected behavior
I expect to see a
Lint/UnusedMethodArgument
offense in the following code snippet:Interestingly, when the method is called on
self
, the offense is correctly raised.This may be related to #4677 , simply because it deals with the same cop.
Actual behavior
No offense is raised by first example.
Steps to reproduce the problem
Run rubocop on this snippet:
RuboCop version
The text was updated successfully, but these errors were encountered: