mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Add testifylint
linter (#4103)
This commit is contained in:
parent
823f02dc35
commit
2d5d29f505
7 changed files with 154 additions and 0 deletions
|
@ -218,6 +218,7 @@ type LintersSettings struct {
|
|||
Stylecheck StaticCheckSettings
|
||||
TagAlign TagAlignSettings
|
||||
Tagliatelle TagliatelleSettings
|
||||
Testifylint TestifylintSettings
|
||||
Tenv TenvSettings
|
||||
Testpackage TestpackageSettings
|
||||
Thelper ThelperSettings
|
||||
|
@ -738,6 +739,19 @@ type TagliatelleSettings struct {
|
|||
}
|
||||
}
|
||||
|
||||
type TestifylintSettings struct {
|
||||
EnableAll bool `mapstructure:"enable-all"`
|
||||
EnabledCheckers []string `mapstructure:"enable"`
|
||||
|
||||
ExpectedActual struct {
|
||||
ExpVarPattern string `mapstructure:"pattern"`
|
||||
} `mapstructure:"expected-actual"`
|
||||
|
||||
SuiteExtraAssertCall struct {
|
||||
Mode string `mapstructure:"mode"`
|
||||
} `mapstructure:"suite-extra-assert-call"`
|
||||
}
|
||||
|
||||
type TestpackageSettings struct {
|
||||
SkipRegexp string `mapstructure:"skip-regexp"`
|
||||
AllowPackages []string `mapstructure:"allow-packages"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue