Skip to content

Commit

Permalink
Merge pull request #127733 from mmorel-35/testifylint/clean-up
Browse files Browse the repository at this point in the history
fix: clean up testifylint configuration in golangci-lint
  • Loading branch information
k8s-ci-robot authored Sep 29, 2024
2 parents 93f82d2 + 0d2ad0e commit 1bbe775
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 0 additions & 2 deletions hack/golangci-hints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions hack/golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 4 additions & 7 deletions hack/golangci.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 1bbe775

Please sign in to comment.