Skip vendor folder when checking fmt

This commit is contained in:
Maxim Baz 2018-07-30 01:26:53 +02:00
parent 1ddcdc7189
commit ef7901adba
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335
1 changed files with 2 additions and 1 deletions

View File

@ -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