Add ifshort linter (#1587)

This commit is contained in:
Eugene Simonov 2021-01-21 00:07:43 +02:00 committed by GitHub
parent f049bfc4ae
commit 750309d157
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 47 additions and 0 deletions

View file

@ -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"`
}