mirror of https://github.com/mpolden/echoip
Skip vendor folder when checking fmt
This commit is contained in:
parent
1ddcdc7189
commit
ef7901adba
3
Makefile
3
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue