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
I ran into this after upgrading rubocop from version 1.17.0 to 1.22.0.
After adding .squish to a heredoc, which rails rubocop suggested, Layout/DotPosition started reporting Place the . on the previous line, together with the method call receiver.. The problem does seem related to the EnforcedStyle: trailing for that cop.
Example:
classTestdefquery<<-SQL.squish SELECT * FROM tests SQLendend
This recent PR added a different fix for Layout/DotPosition & heredocs, but might have introduced this bug. 🤷♂️
Expected behavior
No reported problems with the code
Actual behavior
Describe here what actually happened. Layout/DotPosition: Place the . on the previous line, together with the method call receiver. <<-SQL.squish
I ran into this after upgrading rubocop from version
1.17.0
to1.22.0
.After adding
.squish
to a heredoc, which rails rubocop suggested, Layout/DotPosition started reportingPlace the . on the previous line, together with the method call receiver.
. The problem does seem related to theEnforcedStyle: trailing
for that cop.Example:
This recent PR added a different fix for Layout/DotPosition & heredocs, but might have introduced this bug. 🤷♂️
Expected behavior
No reported problems with the code
Actual behavior
Describe here what actually happened.
Layout/DotPosition: Place the . on the previous line, together with the method call receiver. <<-SQL.squish
Steps to reproduce the problem
Add
.squish
to a heredocRuboCop version
The text was updated successfully, but these errors were encountered: