mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
Add ifshort linter (#1587)
This commit is contained in:
parent
f049bfc4ae
commit
750309d157
7 changed files with 47 additions and 0 deletions
|
@ -270,6 +270,7 @@ type LintersSettings struct {
|
|||
Makezero MakezeroSettings
|
||||
Thelper ThelperSettings
|
||||
Forbidigo ForbidigoSettings
|
||||
Ifshort IfshortSettings
|
||||
Predeclared PredeclaredSettings
|
||||
|
||||
Custom map[string]CustomLinterSettings
|
||||
|
@ -408,6 +409,11 @@ type ThelperSettings struct {
|
|||
} `mapstructure:"benchmark"`
|
||||
}
|
||||
|
||||
type IfshortSettings struct {
|
||||
MaxDeclLines int `mapstructure:"max-decl-lines"`
|
||||
MaxDeclChars int `mapstructure:"max-decl-chars"`
|
||||
}
|
||||
|
||||
type ForbidigoSettings struct {
|
||||
Forbid []string `mapstructure:"forbid"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue