github.com/marinho/drone@v0.2.1-0.20140504195434-d3ba962e89a7/Godeps/_workspace/src/launchpad.net/goyaml/.lbox.check (about) 1 #!/bin/sh 2 3 set -e 4 5 BADFMT=`find * -name '*.go' | xargs gofmt -l` 6 if [ -n "$BADFMT" ]; then 7 BADFMT=`echo "$BADFMT" | sed "s/^/ /"` 8 echo -e "gofmt is sad:\n\n$BADFMT" 9 exit 1 10 fi 11 12 VERSION=`go version | awk '{print $3}'` 13 if [ $VERSION == 'devel' ]; then 14 go tool vet \ 15 -methods \ 16 -printf \ 17 -rangeloops \ 18 -printfuncs 'ErrorContextf:1,notFoundf:0,badReqErrorf:0,Commitf:0,Snapshotf:0,Debugf:0' \ 19 . 20 fi