diff options
author | 2017-06-02 02:25:00 -0400 | |
---|---|---|
committer | 2017-06-02 07:25:00 +0100 | |
commit | a4eea611905498c307804fc4dbc89765febc4bc7 (patch) | |
tree | 3c2da36b07a54d0d2dc95bf53f29e7dd9cd7d816 | |
parent | 381ec9d7f82afcdd3088c39aa2aeffcf65739364 (diff) | |
download | coredns-a4eea611905498c307804fc4dbc89765febc4bc7.tar.gz coredns-a4eea611905498c307804fc4dbc89765febc4bc7.tar.zst coredns-a4eea611905498c307804fc4dbc89765febc4bc7.zip |
fix make lint (#694)
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |