From a5ad3ae67e9c42aa738adae7e7fd535109bc9005 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 2 May 2018 16:53:52 +0200 Subject: exclude util/ from golint, govet --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c6b78c5..b93d8f0 100644 --- a/Makefile +++ b/Makefile @@ -15,17 +15,17 @@ generate: generated.go test: static-tests cover.html +PKG = github.com/majewsky/schwift +TESTPKGS = $(PKG) $(PKG)/tests # space-separated list of packages containing tests +COVERPKGS = $(PKG),$(PKG)/gopherschwift # comma-separated list of packages for which to measure coverage + static-tests: FORCE @echo '>> gofmt...' @if s="$$(gofmt -s -l $$(find -name \*.go) 2>/dev/null)" && test -n "$$s"; then echo "$$s"; false; fi @echo '>> golint...' - @if s="$$(golint ./... 2>/dev/null)" && test -n "$$s"; then echo "$$s"; false; fi + @if s="$$(golint $(TESTPKGS) 2>/dev/null)" && test -n "$$s"; then echo "$$s"; false; fi @echo '>> govet...' - @go vet ./... - -PKG = github.com/majewsky/schwift -TESTPKGS = $(PKG) $(PKG)/tests # space-separated list of packages containing tests -COVERPKGS = $(PKG),$(PKG)/gopherschwift # comma-separated list of packages for which to measure coverage + @go vet $(TESTPKGS) cover.out.%: FORCE @echo '>> go test...' -- cgit v1.2.3