We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Layout/HeredocIndentation
I'm not sure if this is prism's or rubocop's issue, didn't find any related issues
Consider the following heredoc
<<~TXT #{1 + 1} foo TXT
I expect Layout/HeredocIndentation not to find anything suspicios.
C: [Correctable] Layout/HeredocIndentation: Use 2 spaces for indentation in a heredoc. (https://rubystyle.guide#squiggly-heredocs) #{1 + 1} ...
Moreover, running with autocorrect just pushes heredoc content to the right indefinetely.
Note that
<<~TXT foo #{1 + 1} TXT
does not trigger the cop.
1.62.1 (using Prism 0.24.0, rubocop-ast 1.31.2, running on ruby 3.3.0) [x86_64-linux] Prism ref 19177b861e96
The text was updated successfully, but these errors were encountered:
ParserEngine: parser_prism
@andyw8 I think this may have been fixed in latest prism as well, can you check?
Sorry, something went wrong.
The example here is now working, but I'm seeing other failures for this cop - I'll open a separate issue. #12869
parser_prism
No branches or pull requests
Expected behavior
I'm not sure if this is prism's or rubocop's issue, didn't find any related issues
Consider the following heredoc
I expect
Layout/HeredocIndentation
not to find anything suspicios.Actual behavior
Moreover, running with autocorrect just pushes heredoc content to the right indefinetely.
Note that
does not trigger the cop.
RuboCop version
The text was updated successfully, but these errors were encountered: