rubocop / rubocop

A Ruby static code analyzer and formatter, based on the community Ruby style guide.

Home Page:https://docs.rubocop.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

False positive for `Layout/HeredocIndentation` with `ParserEngine: parser_prism`

andyw8 opened this issue · comments

Actual behavior

<<~RUBY
  #{1}
RUBY

results in Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc. when using parser_prism.

Expected behavior

RuboCop shouldn't complain.

RuboCop version

% bin/rubocop -V                                                                                                      
1.63.1 (using Prism 0.24.0, rubocop-ast 1.31.2, running on ruby 3.3.0) [x86_64-linux]
  - rubocop-graphql 1.5.1
  - rubocop-minitest 0.35.0
  - rubocop-performance 1.21.0
  - rubocop-rails 2.24.1
  - rubocop-sorbet 0.8.1

This issue is a dup with #12787.