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
Make Trailing Whitespace Tests Optional #745
Comments
|
Personally, I am happy with this test. It went much smoother than I thought it would. In the end, I think, most contributors configured their editors to either show trailing whitespace or strip it automatically. Those who didn't probably use This, however, cannot be said about edits made via GitHub. Indeed, that is a problem. So while I don't mind the test becoming optional, I don't really understand what we should do next.
|
IMO that seems the simplest solution. Could be a simple bash script that runs on hack in a cron job. |
|
So should this test be turned off for travis only (making local |
|
As for the bot, I can do that. |
|
Yeah, turning off for travis only is the best, I think. This way if a contributor has a chance to run make test, they can spot the issues before committing. |
|
Resolved in 4aee722 - 'make test' now skips whitespace test. 'make xtest' runs everything. |
As per IRC conversation, opening this ticket to suggest making trailing whitespace tests optional.
The reasoning is they often break builds and require contributors to spend time unbreaking them, even though the presence of an occasional trailing whitespaces isn't as detrimental to justify paying such a price.
In an ideal world, there'd be some block that'd prevent a commit from entering if it has trailing whitespace. In a less ideal world, there'd be an automated service unbreaking commits with such breakage. And the last option is to disable the test altogether and learn to live with trailing whitespace.
The text was updated successfully, but these errors were encountered: