Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 822 Bytes

Layout-AlignParameters.md

File metadata and controls

49 lines (32 loc) · 822 Bytes

Pattern: Misaligned parameter of multi-line method

Issue: -

Description

This rule checks if the parameters on a multi-line method call or definition are aligned.

Examples

# EnforcedStyle: with_first_parameter

# good

foo :bar,
    :baz

# bad

foo :bar,
  :baz
# EnforcedStyle: with_fixed_indentation

# good

foo :bar,
  :baz

# bad

foo :bar,
    :baz

Default configuration

Attribute Value
EnforcedStyle with_first_parameter
SupportedStyles with_first_parameter, with_fixed_indentation
IndentationWidth

Further Reading