3 ms·
+1 for checking trailing white space. Whenever I'm working on an OS project and I happen to open a file with white space or unnecessary blank lines, I delete t
by duggieawesome 13y ago
+1 for checking trailing white space.
Whenever I'm working on an OS project and I happen to open a file with white space or unnecessary blank lines, I delete them and send them the changes with my PR. Highly suggest it.
- elasticdog 13y agoIt annoys me too. If you do a git diff against the sha1 of a completely empty tree, you can see all of the whitespace errors that have been checked into a repository: $ git diff --check $(git hash-object -t tree /dev/null) ...although many projects frown upon whitespace-only commits since they screw with `git blame`.