Merge pull request #122416 from pohly/e2e-gomega-be-true-or-false
e2e: forbid usage of gomega.BeTrue/False
This commit is contained in:
		| @@ -150,6 +150,12 @@ linters-settings: # please keep this alphabetized | ||||
|     - p: \.Extract | ||||
|       pkg: ^k8s\.io/client-go/applyconfigurations/ | ||||
|       msg: should not be used because managedFields was removed | ||||
|     - p: ^gomega\.BeTrue$ | ||||
|       pkg: ^github.com/onsi/gomega$ | ||||
|       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(...) }" | ||||
|     - p: ^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(...) }" | ||||
|   revive: | ||||
|     # Only these rules are enabled. | ||||
|     rules: | ||||
|   | ||||
| @@ -171,6 +171,14 @@ linters-settings: # please keep this alphabetized | ||||
|     - p: \.Extract | ||||
|       pkg: ^k8s\.io/client-go/applyconfigurations/ | ||||
|       msg: should not be used because managedFields was removed | ||||
|     {{- if .Hints}} | ||||
|     - p: ^gomega\.BeTrue$ | ||||
|       pkg: ^github.com/onsi/gomega$ | ||||
|       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(...) }" | ||||
|     - p: ^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(...) }" | ||||
|     {{- end}} | ||||
|   {{- if .Base }} | ||||
|   gocritic: | ||||
|     enabled-checks: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot