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
running rubocop --only Layout/LineEndStringConcatenationIndentation -- test.rb gives the following output:
Inspecting 1 file
C
Offenses:
test.rb:2:1: C: [Correctable] Layout/LineEndStringConcatenationIndentation: Align parts of a string concatenated with backslash.
foo ...
^^^^^
I would expect no offenses in that file.
Trying to autocorrect (rubocop --only Layout/LineEndStringConcatenationIndentation -a -- test.rb) causes an infinite loop
Infinite loop detected in /Users/bquorning/Code/rubocop/rubocop/test.rb and caused by Layout/LineEndStringConcatenationIndentation
…tionIndentation
A multiline string literal such as
```ruby
%(
foo
bar
)
```
is parsed as a `dstr`, and should just be skipped by this cop, as
opposed to strings made up of several literals concatenated with
backslash.
Given this source file test.rb:
running
rubocop --only Layout/LineEndStringConcatenationIndentation -- test.rb
gives the following output:I would expect no offenses in that file.
Trying to autocorrect (
rubocop --only Layout/LineEndStringConcatenationIndentation -a -- test.rb
) causes an infinite loopRuboCop version
Running from the RuboCop master branch.
/cc @jonas054
The text was updated successfully, but these errors were encountered: