From 5810498da7483d6c08227e2b08e510ecbb9cbe8a Mon Sep 17 00:00:00 2001 From: sc0vu Date: Mon, 23 Oct 2023 17:20:57 +0800 Subject: [PATCH] lint: update staticcheck --- client/Makefile | 2 +- genconfig/Makefile | 2 +- katzenmint/Makefile | 2 +- plugin/Makefile | 2 +- server/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/Makefile b/client/Makefile index 2740d45..1f8b99f 100644 --- a/client/Makefile +++ b/client/Makefile @@ -7,7 +7,7 @@ default: lint test lint: # cd ../tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint # $(GOPATH)/bin/golangci-lint run -e gosec ./... --timeout=2m - cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@latest + cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 $(GOPATH)/bin/staticcheck ./... go vet ./... go fmt ./... diff --git a/genconfig/Makefile b/genconfig/Makefile index ae40b9f..65a1235 100644 --- a/genconfig/Makefile +++ b/genconfig/Makefile @@ -8,7 +8,7 @@ default: lint test lint: # cd ../tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint # $(GOPATH)/bin/golangci-lint run -e gosec ./... --timeout=2m - cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@latest + cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 $(GOPATH)/bin/staticcheck ./... go vet ./... go fmt ./... diff --git a/katzenmint/Makefile b/katzenmint/Makefile index 1b3a6eb..d865f6e 100644 --- a/katzenmint/Makefile +++ b/katzenmint/Makefile @@ -18,7 +18,7 @@ default: lint test lint: # cd ../tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint # $(GOPATH)/bin/golangci-lint run -e gosec ./... --timeout=2m - cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@latest + cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 $(GOPATH)/bin/staticcheck ./... go vet ./... go fmt ./... diff --git a/plugin/Makefile b/plugin/Makefile index 7a17a19..63f3320 100644 --- a/plugin/Makefile +++ b/plugin/Makefile @@ -7,7 +7,7 @@ default: lint test lint: # cd ../tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint # $(GOPATH)/bin/golangci-lint run -e gosec ./... --timeout=2m - cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@latest + cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 $(GOPATH)/bin/staticcheck ./... go vet ./... go fmt ./... diff --git a/server/Makefile b/server/Makefile index 38b97fb..03ba2eb 100644 --- a/server/Makefile +++ b/server/Makefile @@ -8,7 +8,7 @@ default: lint test lint: # cd ../tools && go install github.com/golangci/golangci-lint/cmd/golangci-lint # $(GOPATH)/bin/golangci-lint run -e gosec ./... --timeout=2m - cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@latest + cd ../ test && go install honnef.co/go/tools/cmd/staticcheck@v0.4.6 $(GOPATH)/bin/staticcheck ./... go vet ./... go fmt ./...