-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
How to test for trailing whitespace? #65
Comments
This is a sample code for snippet-extractor test:
Rubocop complains for the
|
Mmm this is awry. The snippet extractor will always trim any whitespace from the lines (I have to double check but I'm quite sure the only thing it preserves are tabs/spaces at the start). It rather seems a problem with Rubocop failing linting checks. Could you paste your error please? (Try first to check your other issue and limit your test to 10 lines to see if it keeps complaining and we can go from there) |
log from Rubocop check:
|
#66 is fixed now, but here nothing changed. |
In 0c374d9 I tried to get into account the fact, that Extractor will clear whitespace, but id didn't. |
I'm quite sure this is a rubocop issue, but I think the extractor will remove any trailing whitespace at the right anyway, so you should be safe to remove those from the expected, |
Oh wait, I just saw your commit. Let me take a look at this then |
Hello, any news here? |
In #62 I encountered a problem. I have a whitespace before comments (line comment 1, 2 and 3), but cannot write tests, because Rubocop complains during CI. Is this possible to:
or
The text was updated successfully, but these errors were encountered: