Skip to content

Files

Latest commit

 

History

History
58 lines (39 loc) · 823 Bytes

Layout-AlignArguments.md

File metadata and controls

58 lines (39 loc) · 823 Bytes

Pattern: Misaligned arguments for multi-line method

Issue: -

Description

Checks if the arguments on a multi-line method definition are aligned.

Examples

EnforcedStyle: with_first_argument (default)

# good

foo :bar,
    :baz

foo(
  :bar,
  :baz
)

# bad

foo :bar,
  :baz

foo(
  :bar,
    :baz
)

EnforcedStyle: with_fixed_indentation

# good

foo :bar,
  :baz

# bad

foo :bar,
    :baz

Configurable attributes

Name Default value
EnforcedStyle with_first_argument
IndentationWidth <none>

Further Reading