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
There is a now syntax error, the line } , through: :users is part of the heredoc string. Ruby reports /tmp/test.rb:7: syntax error, unexpected `end', expecting '}'.
Expected behavior
Expected behavior is a syntactically correct ruby file after autocorrect. Probably no change at all, I don't see any obvious change that would not break the syntax.
…Newline`
Fixesrubocop#10832.
This PR fixes an incorrect autocorrect for `Layout/BlockEndNewline` when
multiline block `}` is not on its own line and using heredoc argument.
Fixes#10832.
This PR fixes an incorrect autocorrect for `Layout/BlockEndNewline` when
multiline block `}` is not on its own line and using heredoc argument.
Given the input file
the command
autocorrects the file to
There is a now syntax error, the line
} , through: :users
is part of the heredoc string. Ruby reports/tmp/test.rb:7: syntax error, unexpected `end', expecting '}'
.Expected behavior
Expected behavior is a syntactically correct ruby file after autocorrect. Probably no change at all, I don't see any obvious change that would not break the syntax.
Version
The text was updated successfully, but these errors were encountered: