mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-17 11:28:58 +00:00
Merge pull request #137614 from kairosci/fix-golangci-trailing-whitespace
hack/golangci.yaml.in: remove trailing whitespace
This commit is contained in:
@@ -121,7 +121,7 @@ linters:
|
||||
- linters:
|
||||
- kubeapilinter
|
||||
path-except: staging/src/k8s.io/api/.*
|
||||
|
||||
|
||||
# Exceptions for kube-api-linter.
|
||||
# Exceptions are used for kube-api-linter to ignore existing issues that cannot be fixed without breaking changes.
|
||||
|
||||
@@ -479,7 +479,7 @@ linters:
|
||||
pkg: ^k8s\.io/client-go/applyconfigurations/
|
||||
msg: should not be used because managedFields was removed
|
||||
- pattern: \.Add$
|
||||
pkg: ^k8s\.io/component-base/featuregate$
|
||||
pkg: ^k8s\.io/component-base/featuregate$
|
||||
msg: should not use Add, use AddVersioned instead
|
||||
- pattern: \.(ReportBeforeSuite|ReportAfterSuite)
|
||||
pkg: ^github\.com/onsi/ginkgo/v2$
|
||||
|
||||
@@ -136,7 +136,7 @@ linters:
|
||||
- linters:
|
||||
- kubeapilinter
|
||||
path-except: staging/src/k8s.io/api/.*
|
||||
|
||||
|
||||
# Exceptions for kube-api-linter.
|
||||
# Exceptions are used for kube-api-linter to ignore existing issues that cannot be fixed without breaking changes.
|
||||
|
||||
@@ -492,7 +492,7 @@ linters:
|
||||
pkg: ^k8s\.io/client-go/applyconfigurations/
|
||||
msg: should not be used because managedFields was removed
|
||||
- pattern: \.Add$
|
||||
pkg: ^k8s\.io/component-base/featuregate$
|
||||
pkg: ^k8s\.io/component-base/featuregate$
|
||||
msg: should not use Add, use AddVersioned instead
|
||||
- pattern: \.(ReportBeforeSuite|ReportAfterSuite)
|
||||
pkg: ^github\.com/onsi/ginkgo/v2$
|
||||
|
||||
@@ -153,7 +153,7 @@ linters:
|
||||
- linters:
|
||||
- kubeapilinter
|
||||
path-except: staging/src/k8s.io/api/.*
|
||||
|
||||
|
||||
{{include "hack/kube-api-linter/exceptions.yaml" | indent 6 | trim}}
|
||||
|
||||
- linters:
|
||||
@@ -239,7 +239,7 @@ linters:
|
||||
pkg: ^k8s\.io/client-go/applyconfigurations/
|
||||
msg: should not be used because managedFields was removed
|
||||
- pattern: \.Add$
|
||||
pkg: ^k8s\.io/component-base/featuregate$
|
||||
pkg: ^k8s\.io/component-base/featuregate$
|
||||
msg: should not use Add, use AddVersioned instead
|
||||
- pattern: \.(ReportBeforeSuite|ReportAfterSuite)
|
||||
pkg: ^github\.com/onsi/ginkgo/v2$
|
||||
@@ -251,7 +251,7 @@ linters:
|
||||
msg: "it does not produce a good failure message - use BeTrueBecause with an explicit printf-style failure message instead, or plain Go: if ... { ginkgo.Fail(...) }"
|
||||
- pattern: ^gomega\.BeFalse$
|
||||
pkg: ^github.com/onsi/gomega$
|
||||
msg: "it does not produce a good failure message - use BeFalseBecause with an explicit printf-style failure message instead, or plain Go: if ... { ginkgo.Fail(...) }"
|
||||
msg: "it does not produce a good failure message - use BeFalseBecause with an explicit printf-style failure message instead, or plain Go: if ... { ginkgo.Fail(...) }"
|
||||
{{- end}}
|
||||
{{- if .Base }}
|
||||
gocritic:
|
||||
|
||||
Reference in New Issue
Block a user