Remove trailing whitespace (#1955)

Prevent future; "remove trailing whitespace" PR, but adding a simple
presubmit that checks for this.

This presubmit flagged quite some offenders, remove all trailing
whitespace from. Apart from that there aren't any other changes.

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2018-07-09 13:08:02 +01:00
committed by Paul Greenberg
parent b27a59c160
commit 4083852b70
14 changed files with 30 additions and 23 deletions

7
.presubmit/trailing-whitespace Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
echo "** presubmit/$(basename $0)"
if grep -r '[[:blank:]]$' "$@"; then
echo "** presubmit/$(basename $0): please remove any trailing white space"
fi