From ef7901adbadfb577d0a544b93586eb686f04ee32 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Mon, 30 Jul 2018 01:26:53 +0200 Subject: [PATCH] Skip vendor folder when checking fmt --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b71cd40..a718f2c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*") OS := $(shell uname) ifeq ($(OS),Linux) TAR_OPTS := --wildcards @@ -26,7 +27,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 ${GOFILES_NOVENDOR})" lint: check-fmt vet megacheck