Style/HashConversion
cop is unsafe for arguments that are not enclosed in parentheses.
#9672
Labels
Style/HashConversion
cop is unsafe for arguments that are not enclosed in parentheses.
#9672
Expected behavior
Safe auto correct of
Style/HashConversion
should not introduce errors in the code.Actual behavior
If the auto-correct target is an argument without parentheses, the line will be interpreted as a SyntaxError or
One-line pattern matching
after correct.Steps to reproduce the problem
Create
example.rb
:Next, run the following to reproduce the error:
RuboCop version
The text was updated successfully, but these errors were encountered: