ruby-style-guide icon indicating copy to clipboard operation
ruby-style-guide copied to clipboard

Enforce no parentheses for `include`, `extend`, etc?

Open andyw8 opened this issue 2 years ago • 0 comments

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

andyw8 avatar Jan 17 '23 14:01 andyw8