False positive and unsafe correction with Style/HashAsLastArrayItem
and double splat operator.
#11161
Labels
Style/HashAsLastArrayItem
and double splat operator.
#11161
Expected behavior
Using the double splat operator is very convenient to avoid adding an empty hash to an array.
Actual behavior
With the default rubocop settings:
The actual behavior reports an offense.
It also autocorrects the statement to change the behavior:
RuboCop version
The text was updated successfully, but these errors were encountered: