mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
fix: clean up testifylint configuration in golangci-lint
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
93f82d25a5
commit
0d2ad0ee43
@ -185,5 +185,3 @@ linters-settings: # please keep this alphabetized
|
|||||||
- "all"
|
- "all"
|
||||||
testifylint:
|
testifylint:
|
||||||
enable-all: true
|
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:
|
testifylint:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
disable: # TODO: remove each disabled rule and fix it
|
disable: # TODO: remove each disabled rule and fix it
|
||||||
- compares
|
|
||||||
- error-is-as
|
|
||||||
- error-nil
|
|
||||||
- expected-actual
|
|
||||||
- float-compare
|
- float-compare
|
||||||
- go-require
|
- go-require
|
||||||
- nil-compare
|
|
||||||
- require-error
|
- require-error
|
||||||
|
@ -210,14 +210,11 @@ linters-settings: # please keep this alphabetized
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
testifylint:
|
testifylint:
|
||||||
enable-all: true
|
enable-all: true
|
||||||
|
{{- if not .Hints }}
|
||||||
disable: # TODO: remove each disabled rule and fix it
|
disable: # TODO: remove each disabled rule and fix it
|
||||||
{{- if .Base }}
|
{{- if .Base }}
|
||||||
- compares
|
|
||||||
- error-is-as
|
|
||||||
- error-nil
|
|
||||||
- expected-actual
|
|
||||||
- float-compare
|
- float-compare
|
||||||
- go-require
|
- go-require
|
||||||
- nil-compare
|
|
||||||
{{- end}}
|
{{- end}}
|
||||||
- require-error
|
- require-error
|
||||||
|
{{- end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user