class RuboCop::Cop::Layout::AlignArray

‘run’]
‘forrest’,
a = [‘run’,
4, 5, 6]
a = [1, 2, 3
# good
’run’]
‘forrest’,
array = [‘run’,
4, 5, 6]
a = [1, 2, 3
# bad
@example
aligned.
Here we check if the elements of a multi-line array literal are

def on_array(node)

def on_array(node)
  check_alignment(node.children)
end