From a1a7f259217127d167098ae22188ce44873ef6fc Mon Sep 17 00:00:00 2001 From: lugosi Date: Mon, 6 May 2024 09:47:41 +0800 Subject: [PATCH] build: update golangci-lint (#1321) Co-authored-by: kongfanfu --- build/.golangci.yml | 10 ++++++---- build/lint.go | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/build/.golangci.yml b/build/.golangci.yml index b6d55caea8..8eba8a7565 100644 --- a/build/.golangci.yml +++ b/build/.golangci.yml @@ -104,10 +104,12 @@ linters-settings: # minimal occurrences count to trigger, 3 by default min-occurrences: 3 depguard: - list-type: blacklist - include-go-root: false - packages: - - github.com/davecgh/go-spew/spew + rules: + main: + files: + - $all + deny: + - pkg: "github.com/davecgh/go-spew/spew" misspell: # Correct spellings using locale preferences for US or UK. # Default is to use a neutral variety of English. diff --git a/build/lint.go b/build/lint.go index 5d241de0cb..dde96d3dec 100644 --- a/build/lint.go +++ b/build/lint.go @@ -15,7 +15,7 @@ import ( const ( // GolangCIVersion to be used for linting. - GolangCIVersion = "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.52.2" + GolangCIVersion = "github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2" ) // GOBIN environment variable.