mirror of https://github.com/helm/helm
Signed-off-by: George Jenkins <gvjenkins@gmail.com>pull/31670/head
parent
b49daa138d
commit
0ae8e4f2cb
@ -1,2 +1,2 @@
|
|||||||
GOLANG_VERSION=1.24
|
GOLANG_VERSION=1.25
|
||||||
GOLANGCI_LINT_VERSION=v1.64
|
GOLANGCI_LINT_VERSION=v2.5.0
|
||||||
|
|||||||
@ -1,45 +1,66 @@
|
|||||||
run:
|
version: "2"
|
||||||
timeout: 10m
|
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
disable-all: true
|
default: none
|
||||||
enable:
|
enable:
|
||||||
- dupl
|
- dupl
|
||||||
- gofmt
|
|
||||||
- goimports
|
|
||||||
- gosimple
|
|
||||||
- govet
|
- govet
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
- nakedret
|
- nakedret
|
||||||
- revive
|
- revive
|
||||||
- unused
|
|
||||||
- staticcheck
|
- staticcheck
|
||||||
|
- unused
|
||||||
linters-settings:
|
settings:
|
||||||
gofmt:
|
|
||||||
simplify: true
|
|
||||||
goimports:
|
|
||||||
local-prefixes: helm.sh/helm/v3
|
|
||||||
dupl:
|
dupl:
|
||||||
threshold: 400
|
threshold: 400
|
||||||
issues:
|
staticcheck:
|
||||||
exclude-rules:
|
checks:
|
||||||
|
- "all"
|
||||||
|
- "-QF1008" # QF1008: could remove embedded field "Foo" from selector
|
||||||
|
- "-QF1001" # QF1001: could apply De Morgan's law
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
presets:
|
||||||
|
- comments
|
||||||
|
- common-false-positives
|
||||||
|
- legacy
|
||||||
|
- std-error-handling
|
||||||
|
rules:
|
||||||
# Helm, and the Go source code itself, sometimes uses these names outside their built-in
|
# 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.
|
# 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.
|
# Linting will look for redefinition of built-in id's but we opt-in to the ones we choose to use.
|
||||||
- linters:
|
- linters:
|
||||||
- revive
|
- revive
|
||||||
text: "redefines-builtin-id: redefinition of the built-in function append"
|
text: 'redefines-builtin-id: redefinition of the built-in function append'
|
||||||
- linters:
|
- linters:
|
||||||
- revive
|
- revive
|
||||||
text: "redefines-builtin-id: redefinition of the built-in function clear"
|
text: 'redefines-builtin-id: redefinition of the built-in function clear'
|
||||||
- linters:
|
- linters:
|
||||||
- revive
|
- revive
|
||||||
text: "redefines-builtin-id: redefinition of the built-in function max"
|
text: 'redefines-builtin-id: redefinition of the built-in function max'
|
||||||
- linters:
|
- linters:
|
||||||
- revive
|
- revive
|
||||||
text: "redefines-builtin-id: redefinition of the built-in function min"
|
text: 'redefines-builtin-id: redefinition of the built-in function min'
|
||||||
- linters:
|
- linters:
|
||||||
- revive
|
- revive
|
||||||
text: "redefines-builtin-id: redefinition of the built-in function new"
|
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/v3
|
||||||
|
exclusions:
|
||||||
|
generated: lax
|
||||||
|
paths:
|
||||||
|
- third_party$
|
||||||
|
- builtin$
|
||||||
|
- examples$
|
||||||
|
|||||||
Loading…
Reference in new issue