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
…ral-braces-false-negative
[Fix#8642] Fix a false negative for `Style/SpaceInsideHashLiteralBraces` when a correct empty hash precedes the incorrect hash
Expected behavior
I expect the cop to find all violations:
Actual behavior
It only finds one violation:
Steps to reproduce the problem
Create the file
demo.rb
:Run rubocop:
I don't know why, but the method body of
abc
is relevant. If you change it from{}
to for example'a string'
, then the cop works as expected.RuboCop version
The text was updated successfully, but these errors were encountered: