update golangci-lint to .v1.59.0

full diff: https://github.com/golangci/golangci-lint/compare/v1.55.2...v1.59.0

Updated config to address warnings:

    WARN [config_reader] The configuration option `run.skip-files` is deprecated, please use `issues.exclude-files`.
    WARN [config_reader] The configuration option `linters.govet.check-shadowing` is deprecated. Please enable `shadow` instead, if you are not using `enable-all`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 43b97e8880)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
Sebastiaan van Stijn 2024-06-10 20:00:55 +02:00 committed by Cory Snider
parent 5e5ccaa829
commit 1dba0fa8ec
2 changed files with 10 additions and 5 deletions

View File

@ -26,9 +26,6 @@ linters:
run:
timeout: 5m
skip-files:
- cli/compose/schema/bindata.go
- .*generated.*
linters-settings:
depguard:
@ -40,7 +37,11 @@ linters-settings:
gocyclo:
min-complexity: 16
govet:
check-shadowing: false
enable:
- shadow
settings:
shadow:
strict: true
lll:
line-length: 200
nakedret:
@ -54,6 +55,10 @@ issues:
exclude:
- parameter .* always receives
exclude-files:
- cli/compose/schema/bindata.go
- .*generated.*
exclude-rules:
# We prefer to use an "exclude-list" so that new "default" exclusions are not
# automatically inherited. We can decide whether or not to follow upstream

View File

@ -2,7 +2,7 @@
ARG GO_VERSION=1.21.13
ARG ALPINE_VERSION=3.20
ARG GOLANGCI_LINT_VERSION=v1.55.0
ARG GOLANGCI_LINT_VERSION=v1.59.0
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint