-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Missing patterns for Struct #28
Comments
Maybe the same should be applied to |
I like this idea, although we'll probably need something more specific for modules as well, as I don't recall many instances in RuboCop where we treated classes as modules. |
Right, I don't know the cops well enough, there might not be a need for a way to select "code blocks". |
We need a
struct_constructor?
matcher (see #8122)A more general "class_definition?
matcher that would match
class Foo < Bar,
Struct.new(...) doand
Class.new(...) do` would be nice tooThe text was updated successfully, but these errors were encountered: