Skip to content

Files

Latest commit

 

History

History
34 lines (25 loc) · 547 Bytes

Layout-FirstMethodParameterLineBreak.md

File metadata and controls

34 lines (25 loc) · 547 Bytes

Pattern: Missing line break before first method parameter

Issue: -

Description

This rule checks for a line break before the first parameter in a multi-line method parameter definition.

Examples

# bad
def method(foo, bar,
    baz)
  do_something
end

# good
def method(
    foo, bar,
    baz)
  do_something
end

# ignored
def method foo,
    bar
  do_something
end

Further Reading