presubmit: add whitespace test in go (#3629)

Automatically submitted.
This commit is contained in:
Miek Gieben
2020-01-28 11:13:11 +00:00
committed by corbot[bot]
parent 7ebc8ff5fe
commit 04292f1375
8 changed files with 66 additions and 50 deletions

View File

@@ -1,8 +0,0 @@
#!/usr/bin/env bash
echo "** presubmit/$(basename $0)"
if grep -lr "golang.org/x/net/context" "$@"; then
echo "** presubmit/$(basename $0): please use std lib's 'context' instead"
exit 1
fi

View File

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