update golangci-lint to v1.62.0

- fix issues found by recvcheck
- skip k8s files from recvcheck
- remove two removed linters gomnd and execinquery

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-11-11 14:08:52 +01:00
parent 9ffe01de2d
commit 9eca92d625
19 changed files with 75 additions and 71 deletions

View File

@ -27,7 +27,6 @@ linters:
- wsl
- godox
- tparallel
- gomnd
- nlreturn
- noctx
- nestif
@ -62,7 +61,6 @@ linters:
- nonamedreturns
- exhaustruct
# deprecated linters
- execinquery
- exportloopref
linters-settings:
errcheck:
@ -90,3 +88,8 @@ issues:
- dependencies
exclude-files:
- swagger.go
exclude-rules:
# Exclude recvcheck from running on the imported k8s files, to much failures
- path: pkg/k8s.io/
linters:
- recvcheck