Merge pull request #107 from tamird/vet-shadow

Replace `go-nyet` with `go tool vet --shadow`
This commit is contained in:
Jim Teeuwen 2015-08-08 02:19:13 +02:00
commit dce55d09e2

17
testdata/Makefile vendored
View File

@ -1,8 +1,13 @@
FILES:=$(wildcard out/*.go)
.PHONY: check .PHONY: check
check: out/compress-memcopy.go out/compress-nomemcopy.go out/debug.go out/nocompress-memcopy.go out/nocompress-nomemcopy.go errcheck go-nyet golint check: errcheck vet golint $(FILES:.go=.checked)
$(foreach file, $(wildcard out/*.go), errcheck $(file);)
$(foreach file, $(wildcard out/*.go), go-nyet $(file);) out/%.checked: out/%.go
$(foreach file, $(wildcard out/*.go), golint $(file);) errcheck $<
go tool vet --all $<
go tool vet --shadow $<
golint $<
$(GOPATH)/bin/go-bindata: $(wildcard ../*.go) $(wildcard ../**/*.go) $(GOPATH)/bin/go-bindata: $(wildcard ../*.go) $(wildcard ../**/*.go)
go install ../... go install ../...
@ -25,8 +30,8 @@ out/nocompress-nomemcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata
errcheck: errcheck:
go get github.com/kisielk/errcheck go get github.com/kisielk/errcheck
go-nyet: vet:
go get github.com/barakmich/go-nyet go get golang.org/x/tools/cmd/vet
golint: golint:
go get github.com/golang/lint/golint go get github.com/golang/lint/golint