1
0
mirror of https://github.com/ko-build/ko.git synced 2025-11-26 22:40:38 +02:00

upgrade golangci-lint to v2

Signed-off-by: cpanato <ctadeu@gmail.com>
This commit is contained in:
cpanato
2025-04-11 15:46:12 +02:00
committed by Jason Hall
parent 9c00e74143
commit c21c113e71

View File

@@ -1,35 +1,47 @@
run: version: "2"
timeout: 5m
issues:
exclude-rules:
- path: test # Excludes /test, *_test.go etc.
linters:
- gosec
linters: linters:
enable: enable:
- asciicheck - asciicheck
- errorlint - errorlint
- gofmt
- gosec - gosec
- goimports
- importas - importas
- misspell
- prealloc - prealloc
- revive - revive
- misspell - staticcheck
- stylecheck
- tparallel - tparallel
- unconvert - unconvert
- unparam - unparam
- whitespace - whitespace
disable: disable:
- errcheck
- depguard - depguard
- errcheck
linters-settings: settings:
gosec: gosec:
excludes: excludes:
# TODO: Check those example in pkg/caps/caps.go:131 - G115
- G115 # Potential integer overflow when converting between integer types exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gosec
path: test
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$