Skip to content

Add option for Layout/LineLength to auto-ignore lines with Inline RBS comments #14655

@connorshea

Description

@connorshea

Is your feature request related to a problem? Please describe.

For a line like this, which starts with #: I get a line length lint error:

#: (?date: Date, foobar: BigDecimal, ?foobarbaz: BigDecimal, ?foobarbazqux: BigDecimal, ?records: Array[Foo::Bar], ?calculate_something: bool) -> Foo
def foo(date:, foobar:, foobarbaz: 1, foobarbazqux: 1, records: [], calculate_something: true)
  # code
end 

Describe the solution you'd like

I would love to see a setting on Layout/LineLength to automatically ignore lines that start with the #: syntax.

Describe alternatives you've considered

Rewriting the inline RBS signature to be multiple lines, but it only appears to support single line syntax right now, unfortunately.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions