Add the ginkgolinter linter (#3369)

This commit is contained in:
Nahshon Unna Tsameret 2022-12-26 23:03:07 +02:00 committed by GitHub
parent d65222aa87
commit 26dde52d69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 309 additions and 1 deletions

View file

@ -150,6 +150,7 @@ type LintersSettings struct {
Forbidigo ForbidigoSettings
Funlen FunlenSettings
Gci GciSettings
GinkgoLinter GinkgoLinterSettings
Gocognit GocognitSettings
Goconst GoConstSettings
Gocritic GoCriticSettings
@ -321,6 +322,12 @@ type GciSettings struct {
CustomOrder bool `mapstructure:"custom-order"`
}
type GinkgoLinterSettings struct {
SuppressLenAssertion bool `mapstructure:"suppress-len-assertion"`
SuppressNilAssertion bool `mapstructure:"suppress-nil-assertion"`
SuppressErrAssertion bool `mapstructure:"suppress-err-assertion"`
}
type GocognitSettings struct {
MinComplexity int `mapstructure:"min-complexity"`
}