Replace go-nyet
with go tool vet --shadow
`go-nyet` is deprecated.
This commit is contained in:
parent
19c9a00bca
commit
57e5327e97
17
testdata/Makefile
vendored
17
testdata/Makefile
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user