-
-
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
Style/ClassMethods gets singleton methods wrong #1610
Comments
Could you elaborate on the nature of the problem? This code should be ignored by |
Inspecting 14 files
..C...........
Offenses:
lib/minitest/assertions.rb:19:9: C: Use self.inspect instead of UNDEFINED.inspect.
def UNDEFINED.inspect # :nodoc:
^^^^^^^^^ |
Sorry, I should have included the output. |
Ah, I think I get it now. We're currently walking through all static method definitions inside the bodies of classes and modules and check if their names are prefixed with a constant (but we don't care what that constant is as we've assumed it's the class/module name). We should actually check if that constant is the name of the containing class/module. |
The text was updated successfully, but these errors were encountered: