Merge pull request #11187 from k8s-infra-cherrypick-robot/cherry-pick-11185-to-release/2.0

[release/2.0] Update golangci to 1.60.3
This commit is contained in:
Samuel Karp 2024-12-20 13:51:17 -08:00 committed by GitHub
commit fb61c901db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,7 @@ jobs:
- uses: ./.github/actions/install-go
- uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.60.1
version: v1.60.3
skip-cache: true
args: --timeout=8m

View File

@ -1,7 +1,7 @@
linters:
enable:
- depguard # Checks for dependencies that should not be (re)introduced. See "linter-settings" for further details.
- exportloopref # Checks for pointers to enclosing loop variables
# - copyloopvar # Checks for loop variable copies in Go 1.22+
- gofmt
- goimports
- gosec
@ -73,6 +73,7 @@ linters-settings:
- G306
- G402
- G404
- G115
nolintlint:
allow-unused: true