From 7f86c75b96a245882946ae9634c306b4822ec152 Mon Sep 17 00:00:00 2001 From: dongjiang Date: Wed, 24 Apr 2024 22:51:52 +0800 Subject: [PATCH] chore(ci): update golangci-lint to v1.57.2 (#4406) * update lint version Signed-off-by: dongjiang1989 * update version Signed-off-by: dongjiang1989 * fix golangci lint warning Signed-off-by: dongjiang1989 --------- Signed-off-by: dongjiang1989 --- .github/workflows/lint.yaml | 2 +- .golangci.yml | 2 +- Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f140b35e5..c95c84af9 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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 diff --git a/.golangci.yml b/.golangci.yml index 1d73d65e0..93dff1d17 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -69,5 +69,5 @@ issues: linters: [ typecheck ] run: - skip-files: + exclude-files: - endpoint/zz_generated.deepcopy.go diff --git a/Makefile b/Makefile index 251356a00..860796933 100644 --- a/Makefile +++ b/Makefile @@ -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