-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Trailing whitespace #4123
Comments
My grief is when unrelated content changes due to these settings. Otherwise I don't mind if a PR contains extra spaces. |
I spend a non-trivial amount of time doing |
@JakeWharton I've been using the solution proposed here to not waste my time dividing and adding individual chunks.
Nonetheless I feel like trimming trailing whitespace should be the default option and no one would need to go through those magic git tips to create a PR here. |
Looks like it didn't work on your PR though. I already need to use -p to On Sat, Jun 25, 2016, 4:10 PM Niklas Baudy notifications@github.com wrote:
|
True I first created the PR containing the whitespace changes. After that I fixed it and force pushed it. All whitespaces are preseverd now. Yes the star imports are another problem ... |
I don't mind whitespaces or if you removed them in PRs anyomore but I won't bother removing them in my PRs. How about everybody posts with what whitespace settings he/she sees adequate? |
How about configuring your IDE so that it'll strip them out automatically? |
@akarnokd are you willing to merge one PR that removes all of the trailing white space and nothing else in 2.x branch? After that a simple Checkstyle rule could be added to enforce no trailing whitespace anymore. There are also options available in Eclipse to automate this. |
PR yes, Checkstyle no. It complains about too much thing and setting it up for a fresh checkout is non-trivial. How about writing some code in build.gradle that scans through the files before build and lists those lines where they are still there? |
But please wait with the PR until I post my cleanup/enhancements of today. |
Alright will do 👍 |
Often when submitting a PR the trailing whitespace gets automatically deleted because Sublime / IntelliJ was configured that way.
What do you guys think about passively trying to remove those?
In 1.x version PR's containing removal of trailing whitespaces could be accepted rather than letting the PR OP removing it.
In 2.x version there could be one bulk PR that deletes all of those spaces. If this is not wanted it could go also along with every PR.
Personally I'd love to see no file having trailing whitespace. If this is not wanted, also not a problem.
The text was updated successfully, but these errors were encountered: