From bcec71fc5cc3f55a00cd7f34aba428c75fbc516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 31 May 2024 10:14:04 +0300 Subject: [PATCH] chore(golangci-lint): upgrade to 1.59.0 (#738) --- .github/workflows/lint.yml | 2 +- .golangci.yml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f7e54ee0..1e389936 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,4 +18,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: - version: v1.56.2 + version: v1.59.0 diff --git a/.golangci.yml b/.golangci.yml index c4588167..90004fdb 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -5,11 +5,15 @@ linters-settings: enabled-tags: - performance govet: - check-shadowing: true + enable: + - shadow misspell: locale: US gci: - local-prefixes: github.com/evilmartians/lefthook + sections: + - standard + - default + - prefix(github.com/evilmartians/lefthook) revive: rules: - name: unused-parameter @@ -18,8 +22,7 @@ linters-settings: issues: exclude: # https://github.com/catenacyber/perfsprint/issues/21 - # https://github.com/catenacyber/perfsprint/issues/23 - - "^fmt\\.Sprintf can be replaced with string (addi|concatena)tion$" + - "^fmt\\.Sprintf can be replaced with string concatenation$" linters: disable-all: true @@ -52,7 +55,6 @@ linters: - gofumpt - goheader - goimports - - gomnd - goprintffuncname - gosimple - govet @@ -60,6 +62,7 @@ linters: - makezero - mirror - misspell + - mnd - nestif - noctx - nolintlint