From afec8963c62cc362729ba53c9f081f6d744cf51c Mon Sep 17 00:00:00 2001 From: John Belamaric Date: Fri, 5 May 2017 15:33:18 -0400 Subject: [PATCH] Don't check vendor code for gofmt, it takes forever (#661) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1701fab1f..880983dcc 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ gen: .PHONY: fmt fmt: ## run go fmt - @test -z "$$(gofmt -s -l . | grep -v vendor/ | tee /dev/stderr)" || \ + @test -z "$$(find . -type d | grep -vE '(/vendor|^\.$$|/.git|/.travis)' | xargs gofmt -s -l | tee /dev/stderr)" || \ (echo "please format Go code with 'gofmt -s -w'" && false) .PHONY: lint