Pattern: Misaligned first method parameter
Issue: -
Checks the indentation of the first parameter in a method call.
# bad
def some_method(
first_param,
second_param)
123
end
# The first parameter should always be indented one step more than the
# preceding line.
# good
def some_method(
first_param,
second_param)
123
end
# The first parameter should always be indented one step more than the
# opening parenthesis.
# good
def some_method(
first_param,
second_param)
123
end
Name | Default value |
---|---|
EnforcedStyle | consistent |
IndentationWidth | <none> |