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

Don't report Trailing whitespace within a Heredoc #233

Open
Blacksmoke16 opened this issue May 8, 2021 · 0 comments
Open

Don't report Trailing whitespace within a Heredoc #233

Blacksmoke16 opened this issue May 8, 2021 · 0 comments

Comments

@Blacksmoke16
Copy link
Contributor

Blacksmoke16 commented May 8, 2021

I currently have a spec that is asserted against a heredoc that is failing linting due to there being trailing spaces in the heredoc (as the expected output also required them).

It probably makes sense to not apply the trailing whitespace rule for lines within a heredoc, given it's supposed to be interpreted as a multi line string literal.

E.g.

output = <<-OUTPUT

                
  Hello there!. 
                


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

No branches or pull requests

3 participants