build: upgrade staticcheck to latest version (#224)

This commit is contained in:
Daniel Moran
2021-08-04 14:54:53 -04:00
committed by GitHub
parent d615694ee9
commit 10c17ec661
3 changed files with 4 additions and 8 deletions

View File

@ -40,12 +40,8 @@ bin/$(GOOS)/influx: $(SOURCES)
.DEFAULT_GOAL := influx .DEFAULT_GOAL := influx
influx: bin/$(GOOS)/influx influx: bin/$(GOOS)/influx
vendor: go.mod go.sum
go mod vendor
clean: clean:
$(RM) -r bin $(RM) -r bin
$(RM) -r vendor
### Linters ### Linters
checkfmt: checkfmt:
@ -57,7 +53,7 @@ checktidy:
checkopenapi: checkopenapi:
./etc/checkopenapi.sh ./etc/checkopenapi.sh
staticcheck: $(SOURCES) vendor staticcheck: $(SOURCES)
go run honnef.co/go/tools/cmd/staticcheck -go $(GOVERSION) ./... go run honnef.co/go/tools/cmd/staticcheck -go $(GOVERSION) ./...
vet: vet:

2
go.mod
View File

@ -21,5 +21,5 @@ require (
golang.org/x/text v0.3.3 golang.org/x/text v0.3.3
golang.org/x/tools v0.1.0 golang.org/x/tools v0.1.0
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
honnef.co/go/tools v0.1.3 honnef.co/go/tools v0.2.0
) )

4
go.sum
View File

@ -122,5 +122,5 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
honnef.co/go/tools v0.1.3 h1:qTakTkI6ni6LFD5sBwwsdSO+AQqbSIxOauHTTQKZ/7o= honnef.co/go/tools v0.2.0 h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE=
honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= honnef.co/go/tools v0.2.0/go.mod h1:lPVVZ2BS5TfnjLyizF7o7hv7j9/L+8cZY2hLyjP9cGY=