From 8a832d960d596f1b9dd1194f95d86ac459146647 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Wed, 22 Feb 2023 08:11:00 +0100 Subject: [PATCH] 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()) --- .golangci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yaml b/.golangci.yaml index e5cd0b2b90e..29de7f79162 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -20,6 +20,7 @@ issues: linters: disable-all: true enable: # please keep this alphabetized + - ginkgolinter - gocritic - ineffassign - logcheck