-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Weird error message in Layout/IndentHeredoc: "<<~ instead of <<~" #5498
Comments
#4662 (comment) |
+1 |
Hamada14
added a commit
to Hamada14/rubocop
that referenced
this issue
Mar 10, 2018
…lid indentation This commit addresses using `<<~` with Heredoc but using an invalid indentation which results in this message, `Use 2 spaces for indentation in a heredoc by using <<~ instead of <<~`. The message logic was modified where it can address both the operator and the indenation or only the indentation to avoid any confusion. fixes rubocop#5498
8 tasks
bbatsov
pushed a commit
that referenced
this issue
Mar 12, 2018
…entation This commit addresses using `<<~` with Heredoc but using an invalid indentation which results in this message, `Use 2 spaces for indentation in a heredoc by using <<~ instead of <<~`. The message logic was modified where it can address both the operator and the indenation or only the indentation to avoid any confusion. fixes #5498
This was referenced Mar 21, 2018
This was referenced Mar 21, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the following rubocop config:
And this test script:
"foobar" is indented with a single space.
The following error message is shown:
The part about using
<<~
instead of<<~
doesn't really make much sense.The text was updated successfully, but these errors were encountered: