tweakprecommit

This commit is contained in:
Jeffrey Regan 2017-10-25 10:29:36 -07:00
parent d249dff292
commit 1139d1d57b
1 changed files with 18 additions and 18 deletions

View File

@ -5,27 +5,27 @@ if [ -n "$failIt" ]; then
exit 1
fi
tmp=$(gofmt -s -d -l . 2>&1 )
if [ -n "$tmp" ]; then
printf >&2 'gofmt failed for:\n%s\n' "$tmp"
wantEmpty=$(gofmt -s -d -l . 2>&1 )
if [ -n "$wantEmpty" ]; then
printf >&2 'gofmt failed for:\n%s\n' "$wantEmpty"
failIt=1
fi
tmp=$(goimports -l .)
if [ -n "$tmp" ]; then
printf >&2 'goimports failed for:\n%s\n' "$tmp"
wantEmpty=$(goimports -l .)
if [ -n "$wantEmpty" ]; then
printf >&2 'goimports failed for:\n%s\n' "$wantEmpty"
failIt=1
fi
tmp=$(go vet -all ./... 2>&1)
if [ -n "$tmp" ]; then
printf >&2 'govet failed for:\n%s\n' "$tmp"
wantEmpty=$(go vet -all ./... 2>&1)
if [ -n "$wantEmpty" ]; then
printf >&2 'govet failed for:\n%s\n' "$wantEmpty"
failIt=1
fi
tmp=$(golint ./...)
if [ -n "$tmp" ]; then
printf >&2 'golint failed for:\n%s\n' "$tmp"
wantEmpty=$(golint ./...)
if [ -n "$wantEmpty" ]; then
printf >&2 'golint failed for:\n%s\n' "$wantEmpty"
failIt=1
fi