mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
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>
8 lines
168 B
Bash
Executable File
8 lines
168 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "** presubmit/$(basename $0)"
|
|
|
|
if grep -r '[[:blank:]]$' "$@"; then
|
|
echo "** presubmit/$(basename $0): please remove any trailing white space"
|
|
fi
|