From 122fd3dcfa2502ebbf7fb8c65a50ece8e859284e Mon Sep 17 00:00:00 2001 From: Martin Polden Date: Tue, 14 Aug 2018 21:00:55 +0200 Subject: [PATCH] Exclude vendor in check-fmt target --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f8299e8..8db1c7a 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ ifdef TRAVIS endif check-fmt: - bash -c "diff --line-format='%L' <(echo -n) <(gofmt -d -s .)" + bash -c 'diff --line-format="%L" <(echo -n) <(gofmt -d -s $$(find . -type f -name "*.go" -not -path "./vendor/*"))' lint: check-fmt vet megacheck