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
I'm running corrections over some older code that hasn't been looked after by Rubocop before, and I've just had the Style/BracesAroundHashParameters cop auto-correct a hash that was laid out in a pretty ugly way and it has unexpectedly removed the last key.
I'm running corrections over some older code that hasn't been looked after by Rubocop before, and I've just had the Style/BracesAroundHashParameters cop auto-correct a hash that was laid out in a pretty ugly way and it has unexpectedly removed the last key.
The hash affected was effectively
Expected behavior
Remove the braces and correct indentation.
Actual behavior
In additional to the expected behaviour,
'key2' => 2
was entirely removed.Steps to reproduce the problem
Given this contrived
eg.rb
file:Run Rubocop corrections:
The
eg.rb
file is left in this state:RuboCop version
The text was updated successfully, but these errors were encountered: