From a4ef49cf5923da7d1a2fc67e13062b2601f0fbc5 Mon Sep 17 00:00:00 2001 From: Ivo Gosemann Date: Wed, 20 Sep 2023 10:42:06 +0200 Subject: [PATCH] add linter config for ginkgo and gomega Enable ginkgolinter Whitelist ginkgo/v2 and gomega dotimports --- internal/golangcilint/golangci_lint.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/internal/golangcilint/golangci_lint.go b/internal/golangcilint/golangci_lint.go index ed2eb0d..636bf54 100644 --- a/internal/golangcilint/golangci_lint.go +++ b/internal/golangcilint/golangci_lint.go @@ -122,9 +122,13 @@ linters-settings: - {{ . }} {{- end }} {{- end }} + stylecheck: + dot-import-whitelist: + - github.com/onsi/ginkgo/v2 + - github.com/onsi/gomega usestdlibvars: - constant-kind: true - crypto-hash: true + constant-kind: true + crypto-hash: true default-rpc-path: true http-method: true http-status-code: true @@ -152,6 +156,7 @@ linters: - errorlint - exportloopref - forbidigo + - ginkgolinter - gocheckcompilerdirectives - gocritic - gofmt