class RuboCop::Cop::Layout::MultilineArrayLineBreaks

Ensures that each item in a multi-line array starts on a separate line.

@example

# bad
[
  a, b,
  c
]

# good
[
  a,
  b,
  c
]

# good
[
  a,
  b,
  foo(
    bar
  )
]

@example AllowMultilineFinalElement: false (default)

# bad
[a, b, foo(
  bar
)]

@example AllowMultilineFinalElement: true

# good
[a, b, foo(
  bar
)]