Skip to content

Suggestion: Cop for sig as a single or multi-line block #174

@andyw8

Description

@andyw8

Original context: Shopify/ruby-lsp-rails#131 (comment)

When a sig block has several parameters, it's usually more readable as a multi-line block, with one parameter per line. But when it only has one or two parameters, a single-line block is usually preferred.

Let's add a cop to auto-correct this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions