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
Using Style/HashAsLastArrayItem with EnforcedStyle: no_braces should yield valid Ruby code.
I was planning to use braces but wanted to see which parts of our code base might use the no_braces style currently and wanted to see what would change with either of the two styles.
Actual behavior
The cop is not safe and results in invalid Ruby code.
Expected behavior
Using
Style/HashAsLastArrayItem
withEnforcedStyle: no_braces
should yield valid Ruby code.I was planning to use
braces
but wanted to see which parts of our code base might use theno_braces
style currently and wanted to see what would change with either of the two styles.Actual behavior
The cop is not safe and results in invalid Ruby code.
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: