Skip to content
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

Enforce no parentheses for include, extend, etc? #914

Open
andyw8 opened this issue Jan 17, 2023 · 0 comments
Open

Enforce no parentheses for include, extend, etc? #914

andyw8 opened this issue Jan 17, 2023 · 0 comments

Comments

@andyw8
Copy link
Contributor

andyw8 commented Jan 17, 2023

In https://github.com/shopify/ruby-style-guide#syntax we say:

omit parentheses when the invocation is single-line and the method [...] is a class method call with implicit receiver.

But currently this isn't enforced by RuboCop.

The relevant cop is probably https://www.rubydoc.info/gems/rubocop/1.43.0/RuboCop/Cop/Style/MethodCallWithArgsParentheses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant