fix make lint (#694)

This commit is contained in:
Chris O'Haver
2017-06-02 02:25:00 -04:00
committed by Miek Gieben
parent 381ec9d7f8
commit a4eea61190

View File

@@ -58,7 +58,8 @@ fmt:
.PHONY: lint
lint: deps
## run go lint, suggestion only (not enforced)
@test -z "$$(golint ./... | grep -v vendor/ | grep -v ".pb.go:" | grep -vE "context\.Context should be the first parameter of a function" | tee /dev/stderr)"
@test -z "$$(find . -type d | grep -vE '(/vendor|^\.$$|/.git|/.travis)' | grep -vE '(^\./pb)' | xargs golint \
| grep -vE "context\.Context should be the first parameter of a function" | tee /dev/stderr)"
.PHONY: distclean
distclean: clean