Rainbond/vendor/github.com/thejerf/suture/pre-commit
2017-11-07 11:40:44 +08:00

13 lines
150 B
Bash
Executable File

#!/bin/bash
GOLINTOUT=$(golint *go)
if [ ! -z "$GOLINTOUT" -o "$?" != 0 ]; then
echo golint failed:
echo $GOLINTOUT
exit 1
fi
go test