Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive for Layout/HeredocIndentation with parser_prism #12869

Open
andyw8 opened this issue Apr 25, 2024 · 2 comments
Open

False positive for Layout/HeredocIndentation with parser_prism #12869

andyw8 opened this issue Apr 25, 2024 · 2 comments
Labels

Comments

@andyw8
Copy link
Contributor

andyw8 commented Apr 25, 2024

Similar to #12787:

<<~TXT.squish
  a
  b
TXT

Prism v0.27.0, RuboCop v1.63.3

cc @kddnewton

@andyw8
Copy link
Contributor Author

andyw8 commented Apr 25, 2024

Another variant:

foo(<<~RUBY, "y")
  a
  b
RUBY

@koic koic added the prism label Apr 25, 2024
@emptyflask
Copy link

With blocks as well:

Rails.logger.debug { <<~LOG }
  a
  b
LOG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants