Open amomchilov opened 8 months ago
Is this related to https://github.com/rubocop/rubocop/issues/12053 ?
@ydakuka I hadn't seen that, but I guess it's pretty similar!
I think two separate cops would be good here. One to turn a.push(x)
into a << x
, and another to take a series of a << x
s (or pushes) and turn them into one.
Closes #431
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
(if the related issue exists).master
(if not - rebase it).bundle exec rake default
. It executes all tests and runs RuboCop on its own code.{change_type}_{change_description}.md
if the new code introduces user-observable changes. See changelog entry format for details.