class RuboCop::Cop::Layout::FirstArrayElementLineBreak

Checks for a line break before the first element in a multi-line array.

@example

# bad
[ :a,
  :b]

# good
[
  :a,
  :b]

# good
[:a, :b]

@example AllowMultilineFinalElement: false (default)

# bad
[ :a, {
  :b => :c
}]

# good
[
  :a, {
  :b => :c
}]

@example AllowMultilineFinalElement: true

# good
[:a, {
  :b => :c
}]