mirror of https://github.com/helm/helm
``` WARN The configuration comments are not migrated. WARN Details about the migration: https://golangci-lint.run/product/migration-guide/ WARN The configuration `run.timeout` is ignored. By default, in v2, the timeout is disabled. ``` I've backported comment and timeout Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>pull/30752/head
parent
18ed1cf720
commit
d878548168
@ -1,45 +1,63 @@
|
||||
version: "2"
|
||||
run:
|
||||
timeout: 10m
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
default: none
|
||||
enable:
|
||||
- dupl
|
||||
- gofmt
|
||||
- goimports
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- misspell
|
||||
- nakedret
|
||||
- revive
|
||||
- unused
|
||||
- staticcheck
|
||||
|
||||
linters-settings:
|
||||
gofmt:
|
||||
simplify: true
|
||||
goimports:
|
||||
local-prefixes: helm.sh/helm/v4
|
||||
dupl:
|
||||
threshold: 400
|
||||
issues:
|
||||
exclude-rules:
|
||||
- unused
|
||||
settings:
|
||||
dupl:
|
||||
threshold: 400
|
||||
exclusions:
|
||||
# Helm, and the Go source code itself, sometimes uses these names outside their built-in
|
||||
# functions. As the Go source code has re-used these names it's ok for Helm to do the same.
|
||||
# Linting will look for redefinition of built-in id's but we opt-in to the ones we choose to use.
|
||||
- linters:
|
||||
- revive
|
||||
text: "redefines-builtin-id: redefinition of the built-in function append"
|
||||
- linters:
|
||||
- revive
|
||||
text: "redefines-builtin-id: redefinition of the built-in function clear"
|
||||
- linters:
|
||||
- revive
|
||||
text: "redefines-builtin-id: redefinition of the built-in function max"
|
||||
- linters:
|
||||
- revive
|
||||
text: "redefines-builtin-id: redefinition of the built-in function min"
|
||||
- linters:
|
||||
- revive
|
||||
text: "redefines-builtin-id: redefinition of the built-in function new"
|
||||
generated: lax
|
||||
presets:
|
||||
- comments
|
||||
- common-false-positives
|
||||
- legacy
|
||||
- std-error-handling
|
||||
rules:
|
||||
- linters:
|
||||
- revive
|
||||
text: 'redefines-builtin-id: redefinition of the built-in function append'
|
||||
- linters:
|
||||
- revive
|
||||
text: 'redefines-builtin-id: redefinition of the built-in function clear'
|
||||
- linters:
|
||||
- revive
|
||||
text: 'redefines-builtin-id: redefinition of the built-in function max'
|
||||
- linters:
|
||||
- revive
|
||||
text: 'redefines-builtin-id: redefinition of the built-in function min'
|
||||
- linters:
|
||||
- revive
|
||||
text: 'redefines-builtin-id: redefinition of the built-in function new'
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
formatters:
|
||||
enable:
|
||||
- gofmt
|
||||
- goimports
|
||||
settings:
|
||||
gofmt:
|
||||
simplify: true
|
||||
goimports:
|
||||
local-prefixes:
|
||||
- helm.sh/helm/v4
|
||||
exclusions:
|
||||
generated: lax
|
||||
paths:
|
||||
- third_party$
|
||||
- builtin$
|
||||
- examples$
|
||||
|
Loading…
Reference in new issue