Merge pull request #127733 from mmorel-35/testifylint/clean-up

fix: clean up testifylint configuration in golangci-lint
This commit is contained in:
Kubernetes Prow Robot 2024-09-29 18:00:03 +01:00 committed by GitHub
commit 1bbe775d5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 14 deletions

View File

@ -185,5 +185,3 @@ linters-settings: # please keep this alphabetized
- "all"
testifylint:
enable-all: true
disable: # TODO: remove each disabled rule and fix it
- require-error

View File

@ -239,11 +239,6 @@ linters-settings: # please keep this alphabetized
testifylint:
enable-all: true
disable: # TODO: remove each disabled rule and fix it
- compares
- error-is-as
- error-nil
- expected-actual
- float-compare
- go-require
- nil-compare
- require-error

View File

@ -210,14 +210,11 @@ linters-settings: # please keep this alphabetized
{{- end}}
testifylint:
enable-all: true
{{- if not .Hints }}
disable: # TODO: remove each disabled rule and fix it
{{- if .Base}}
- compares
- error-is-as
- error-nil
- expected-actual
{{- if .Base }}
- float-compare
- go-require
- nil-compare
{{- end}}
{{- end}}
- require-error
{{- end}}