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

Fix incorrect violation with embedded templates in no-trailing-spaces rule #2833

Merged

Conversation

robinborst95
Copy link
Contributor

@robinborst95 robinborst95 commented Mar 3, 2023

Fixes #2832. At first I thought templateInfo.contents => templateInfo.contents.trimEnd() in extract-templates would be the solution (it does fix this added test), but it made other tests fail for good reasons it seemed. So, after fixing another rule, I cherry-picked the columnOffset changes from #2838, because this made it quite trivial to fix! I'm curious to hear anyone's thoughts on this (and the other PR) :)

@robinborst95 robinborst95 force-pushed the test/no-trailing-spaces-embedded branch from 36f43d2 to 1c84835 Compare March 8, 2023 22:06
@robinborst95 robinborst95 changed the title Add failing test for incorrect no-trailing-spaces in embedded templates Fix incorrect no-trailing-spaces in embedded templates Mar 8, 2023
@bmish bmish added the bug label Mar 14, 2023
@bmish bmish changed the title Fix incorrect no-trailing-spaces in embedded templates Fix incorrect violation with embedded templates in no-trailing-spaces rule Mar 15, 2023
Copy link
Member

@bmish bmish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable, thanks!

@bmish bmish merged commit 027c7dd into ember-template-lint:master Mar 15, 2023
@robinborst95 robinborst95 deleted the test/no-trailing-spaces-embedded branch March 15, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedded templates incorrectly violate no-trailing-spaces rule
2 participants