aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris O'Haver <cohaver@infoblox.com> 2017-06-02 02:25:00 -0400
committerGravatar Miek Gieben <miek@miek.nl> 2017-06-02 07:25:00 +0100
commita4eea611905498c307804fc4dbc89765febc4bc7 (patch)
tree3c2da36b07a54d0d2dc95bf53f29e7dd9cd7d816
parent381ec9d7f82afcdd3088c39aa2aeffcf65739364 (diff)
downloadcoredns-a4eea611905498c307804fc4dbc89765febc4bc7.tar.gz
coredns-a4eea611905498c307804fc4dbc89765febc4bc7.tar.zst
coredns-a4eea611905498c307804fc4dbc89765febc4bc7.zip
fix make lint (#694)
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 880983dcc..0871463df 100644
--- a/Makefile
+++ b/Makefile
@@ -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