From a4eea611905498c307804fc4dbc89765febc4bc7 Mon Sep 17 00:00:00 2001 From: Chris O'Haver Date: Fri, 2 Jun 2017 02:25:00 -0400 Subject: [PATCH] fix make lint (#694) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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