mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #127733 from mmorel-35/testifylint/clean-up
fix: clean up testifylint configuration in golangci-lint
This commit is contained in:
commit
1bbe775d5f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user