You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autocorrection is not working (not even with -A flag):
$ rubocop -A
# (...)
Offenses:
file.rb:33:17: C: Style/ConcatArrayLiterals: Use push with elements as arguments without array brackets instead of concat(%i[subject preview_text audience body sender_id]).
attrs.concat(%i[subject body])
^^^^^^^^^^^^^^^^^^^^^^^^
162 files inspected, 1 offense detected
Expected behavior
Docs says this cop supports autocorrection:
Actual behavior
Autocorrection is not working (not even with
-A
flag):$ rubocop -A # (...) Offenses: file.rb:33:17: C: Style/ConcatArrayLiterals: Use push with elements as arguments without array brackets instead of concat(%i[subject preview_text audience body sender_id]). attrs.concat(%i[subject body]) ^^^^^^^^^^^^^^^^^^^^^^^^ 162 files inspected, 1 offense detected
Steps to reproduce the problem
Here's the tested Ruby code:
RuboCop version
The text was updated successfully, but these errors were encountered: