Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 360 Bytes

assignment_indentation.md

File metadata and controls

18 lines (15 loc) · 360 Bytes

Checks the indentation of the first line of the right-hand-side of a multi-line assignment.

The indentation of the remaining lines can be corrected with other cops such as Layout/IndentationConsistency and Layout/EndAlignment.

Example:

# bad
value =
if foo
  'bar'
end

# good
value =
  if foo
    'bar'
  end