123456789101112131415161718192021222324252627282930313233343536 |
- COVER=${COVER:-"-cover"}
- source ./build
- FORMATTABLE="iptables"
- if [ -z "$PKG" ]; then
- FMT=$FORMATTABLE
- else
- # strip out slashes and dots from PKG=./foo/
- FMT=${PKG//\//}
- fi
- echo "Checking gofmt..."
- fmtRes=$(gofmt -l $FMT)
- if [ -n "${fmtRes}" ]; then
- echo -e "gofmt checking failed:\n${fmtRes}"
- exit 255
- fi
- echo "Success"
|