diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-05-02 16:53:52 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-05-02 16:53:52 +0200 |
| commit | a5ad3ae67e9c42aa738adae7e7fd535109bc9005 (patch) | |
| tree | 86d29cec027217f3e4a7747f13513c02ba21ea03 /Makefile | |
| parent | b698287d0655420713bf6edfbc8de53da7c5a236 (diff) | |
| download | go-schwift-a5ad3ae67e9c42aa738adae7e7fd535109bc9005.tar.gz | |
exclude util/ from golint, govet
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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...' |
