Skip to content

Commit

Permalink
add linter config for ginkgo and gomega
Browse files Browse the repository at this point in the history
Enable ginkgolinter
Whitelist ginkgo/v2 and gomega dotimports
  • Loading branch information
IvoGoman committed Sep 20, 2023
1 parent febbc44 commit a4ef49c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions internal/golangcilint/golangci_lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -152,6 +156,7 @@ linters:
- errorlint
- exportloopref
- forbidigo
- ginkgolinter
- gocheckcompilerdirectives
- gocritic
- gofmt
Expand Down

0 comments on commit a4ef49c

Please sign in to comment.