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
Style/HashAsLastArrayItem detects and corrects hashes in an implicit array (such as when passing multiple values to a setter), resulting in a syntax error.
Expected behavior
The following is a common line of code in Rails projects:
Style/HashAsLastArrayItem
detects and corrects hashes in an implicit array (such as when passing multiple values to a setter), resulting in a syntax error.Expected behavior
The following is a common line of code in Rails projects:
It should not register an offense, as the braces are necessary syntax.
Actual behavior
Rubocop registers an offense:
And corrects to:
Which is a syntax error:
RuboCop version
The text was updated successfully, but these errors were encountered: