class RuboCop::Cop::Style::ConcatArrayLiterals

Enforces the use of ‘Array#push(item)` instead of `Array#concat()` to avoid redundant array literals.

@safety

This cop is unsafe, as it can produce false positives if the receiver
is not an `Array` object.

@example

# bad
list.concat([foo])
list.concat([bar, baz])
list.concat([qux, quux], [corge])

# good
list.push(foo)
list.push(bar, baz)
list.push(qux, quux, corge)