Merge pull request #822 from AkihiroSuda/fix-vet

fix `make vet` failures, and enable `make vet` on CI
This commit is contained in:
Stephen Day
2017-05-10 11:42:24 -07:00
committed by GitHub
21 changed files with 58 additions and 76 deletions

View File

@@ -79,7 +79,7 @@ checkprotos: protos ## check if protobufs needs to be generated again
# imports
vet: binaries ## run go vet
@echo "$(WHALE) $@"
@test -z "$$(go vet ${PACKAGES} 2>&1 | grep -v 'constant [0-9]* not a string in call to Errorf' | egrep -v '(timestamp_test.go|duration_test.go|exit status 1)' | tee /dev/stderr)"
@test -z "$$(go vet ${PACKAGES} 2>&1 | grep -v 'constant [0-9]* not a string in call to Errorf' | grep -v 'unrecognized printf verb 'r'' | egrep -v '(timestamp_test.go|duration_test.go|fetch.go|exit status 1)' | tee /dev/stderr)"
fmt: ## run go fmt
@echo "$(WHALE) $@"