diff options
author | Jakob Borg <jakob@nym.se> | 2015-04-28 22:32:10 +0200 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2015-04-29 10:38:02 +0200 |
commit | 60fcaebfdb8d8a4ce6ff7fb2aada6226ce5e9964 (patch) | |
tree | 356ab8d5a23dc7224edf0055ef1406e95d8f0ed3 /build.sh | |
parent | 3932884688613a6661e5789fff7e3f6e6bd06afc (diff) |
Run vet and lint. Make us lint clean.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -118,8 +118,6 @@ case "${1:-default}" in -e "STTRACE=$STTRACE" \ syncthing/build:latest \ sh -c './build.sh clean \ - && go tool vet -composites=false cmd/*/*.go internal/*/*.go \ - && ( golint ./cmd/... ; golint ./internal/... ) | egrep -v "comment on exported|should have comment" \ && ./build.sh all \ && STTRACE=all ./build.sh test-cov' ;; @@ -138,6 +136,25 @@ case "${1:-default}" in && git clean -fxd .' ;; + docker-lint) + docker run --rm -h syncthing-builder -u $(id -u) -t \ + -v $(pwd):/go/src/github.com/syncthing/syncthing \ + -w /go/src/github.com/syncthing/syncthing \ + -e "STTRACE=$STTRACE" \ + syncthing/build:latest \ + sh -euxc 'go run build.go lint' + ;; + + + docker-vet) + docker run --rm -h syncthing-builder -u $(id -u) -t \ + -v $(pwd):/go/src/github.com/syncthing/syncthing \ + -w /go/src/github.com/syncthing/syncthing \ + -e "STTRACE=$STTRACE" \ + syncthing/build:latest \ + sh -euxc 'go run build.go vet' + ;; + *) echo "Unknown build command $1" ;; |