-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Trim trailing whitespace #832
base: master
Are you sure you want to change the base?
Conversation
@a1346054 Thanks. I've cherry-picked the spelling fixes with a tweaked log message. I don't particularly mind trailing whitespace, but leaving this open to give other devs a chance to weigh in. Thanks! |
since an .editorconfig file is present, it would solve all future trailing whitespace issues if
were added to it. Trailing whitespace makes my editor shout at me :) |
Not all editors honor |
Users of editorconfig-less editors might be able to use a gitattributes(5) I don't see why we do this at all, as opposed to calling this a bug in the OP's editor or its configuration. If editorconfig support were ubiquitous, that'd be one thing, but since it isn't—well, throwing CI failures at people because their $EDITOR doesn't have editorconfig support (installed, or at all) doesn't sound to me like a good use of volunteer time :( |
I'm not strongly attached to the idea, but in most cases I think it's better to have a linter/CI system point out issues rather than a human reviewer. It lessens the cycle time to feedback. +1 to the PR, but also wouldn't object to a NACK. |
Agreed that whenever there's an issue to be pointed out, lessening the time to feedback is desirable. (Which, incidentally, is an argument for pushing the validation into |
Do you suggest the policy be accept a PR with trailing whitespace as is or fixup the PR when merging without troubling the submitter about it? |
Yes, preferably the former. WDYT? |
I prefer the latter as I dislike trailing whitespace, but can accept doing the former as well. |
So we have one +1 and one +0 for each of two mutually-exclusive options. Do we make decisions by consensus or by majority? If we make decisions by consensus, the short answer is that we don't have consensus. If we make decisions by majority, we can ask Julien to cast a deciding vote. I'd rather we were a consensus project. Quoting producingoss:
|
Rebased to fix merge conflict. |
No description provided.