mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 10:20:51 +00:00
golangci-lint: enable ginkgolinter
The ginkgolinter can detect sub-optimal usage of gomega assertions, for example: Expect(len(x)).To(Equal(0)) // should be: Expect(x).To(BeEmpty())
This commit is contained in:
parent
41f23f52d0
commit
8a832d960d
@ -20,6 +20,7 @@ issues:
|
|||||||
linters:
|
linters:
|
||||||
disable-all: true
|
disable-all: true
|
||||||
enable: # please keep this alphabetized
|
enable: # please keep this alphabetized
|
||||||
|
- ginkgolinter
|
||||||
- gocritic
|
- gocritic
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- logcheck
|
- logcheck
|
||||||
|
Loading…
Reference in New Issue
Block a user