Skip to content

Files

Latest commit

 

History

History
46 lines (31 loc) · 558 Bytes

Layout-EmptyLinesAroundArguments.md

File metadata and controls

46 lines (31 loc) · 558 Bytes

Pattern: Empty lines around arguments

Issue: -

Description

This rule checks if empty lines exist around the arguments of a method invocation.

Examples

# bad
do_something(
  foo

)

process(bar,

        baz: qux,
        thud: fred)

some_method(

  [1,2,3],
  x: y
)

# good
do_something(
  foo
)

process(bar,
        baz: qux,
        thud: fred)

some_method(
  [1,2,3],
  x: y
)

Further Reading