chore(ci): update golangci-lint to v1.57.2 (#4406)

* update lint version

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

* update version

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

* fix golangci lint warning

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>

---------

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
This commit is contained in:
dongjiang 2024-04-24 22:51:52 +08:00 committed by GitHub
parent a7a2286439
commit 7f86c75b96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -31,5 +31,5 @@ jobs:
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2
make lint

View File

@ -69,5 +69,5 @@ issues:
linters: [ typecheck ]
run:
skip-files:
exclude-files:
- endpoint/zz_generated.deepcopy.go

View File

@ -45,7 +45,7 @@ CONTROLLER_GEN=$(shell which controller-gen)
endif
golangci-lint:
@command -v golangci-lint > /dev/null || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
@command -v golangci-lint > /dev/null || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.57.2
# Run the golangci-lint tool
.PHONY: go-lint