Skip to content

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

@andyw8

Description

@andyw8

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions