From 5701645c8d550c4de99cccf66159160b2da76ecb Mon Sep 17 00:00:00 2001 From: zhangyangyu Date: Thu, 21 Nov 2024 01:42:17 +0800 Subject: [PATCH] fix lint --- .github/workflows/lint.yml | 4 ++-- .golangci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 74ef459a..0913121c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -28,9 +28,9 @@ jobs: go-version-file: './go.mod' - name: golangci-lint - uses: golangci/golangci-lint-action@v3.3.0 + uses: golangci/golangci-lint-action@v6 with: - version: v1.56.2 + version: v1.62.0 fmt: name: fmt diff --git a/.golangci.yml b/.golangci.yml index 530b0cfd..ec3319d6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -7,7 +7,6 @@ linters: - bodyclose - durationcheck - errcheck - - exportloopref - goimports - gosec - gosimple @@ -31,6 +30,7 @@ linters-settings: confidence: "low" excludes: - G101 + - G115 - G404 # exclude warnings of using crypto/sha1 - G505