From fcb2169a3e0c2f7ec51e19648dfc62ffd016d7f6 Mon Sep 17 00:00:00 2001 From: Alessio Attilio Date: Tue, 10 Mar 2026 18:52:52 +0100 Subject: [PATCH] hack/golangci.yaml.in: remove trailing whitespace Remove trailing whitespace on three lines. --- hack/golangci-hints.yaml | 4 ++-- hack/golangci.yaml | 4 ++-- hack/golangci.yaml.in | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hack/golangci-hints.yaml b/hack/golangci-hints.yaml index 0798ad1eb98..bb9c4cec923 100644 --- a/hack/golangci-hints.yaml +++ b/hack/golangci-hints.yaml @@ -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. @@ -510,7 +510,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$ diff --git a/hack/golangci.yaml b/hack/golangci.yaml index 93e0dabb604..675056095dc 100644 --- a/hack/golangci.yaml +++ b/hack/golangci.yaml @@ -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. @@ -523,7 +523,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$ diff --git a/hack/golangci.yaml.in b/hack/golangci.yaml.in index 19ad6f7bfaf..7b58a0acb26 100644 --- a/hack/golangci.yaml.in +++ b/hack/golangci.yaml.in @@ -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: