Skip to content

Rails/StripHeredoc bad autocorrect when squiggly already present #731

Closed
@vlad-pisanov

Description

Consider

s = <<~EOF.strip_heredoc
  foo
EOF

Rails/StripHeredoc autocorrects this to:

s = <<~~EOF
  foo
EOF

Expected:

s = <<~EOF
  foo
EOF

Rubocop:

1.30.1 (using Parser 3.1.2.0, rubocop-ast 1.18.0, running on ruby 2.6.9 x86_64-darwin21)
  - rubocop-minitest 0.20.1
  - rubocop-performance 1.14.2
  - rubocop-rails 2.15.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions