mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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:
committed by
Paul Greenberg
parent
b27a59c160
commit
4083852b70
7
.presubmit/trailing-whitespace
Executable file
7
.presubmit/trailing-whitespace
Executable 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
|
||||
Reference in New Issue
Block a user