Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 522 Bytes

argument_alignment.md

File metadata and controls

39 lines (29 loc) · 522 Bytes

Check that the arguments on a multi-line method call are aligned.

Example: EnforcedStyle: with_first_argument (default)

# good

foo :bar,
    :baz,
    key: value

foo(
  :bar,
  :baz,
  key: value
)

# bad

foo :bar,
  :baz,
  key: value

foo(
  :bar,
    :baz,
    key: value
)

Example: EnforcedStyle: with_fixed_indentation

# good

foo :bar,
  :baz,
  key: value

# bad

foo :bar,
    :baz,
    key: value