Add tenv linter (#2221)

This commit is contained in:
sivchari 2021-09-27 02:50:47 +09:00 committed by GitHub
parent c6c55d2502
commit 20699a7213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 267 additions and 0 deletions

View file

@ -132,6 +132,7 @@ type LintersSettings struct {
Tagliatelle TagliatelleSettings
Testpackage TestpackageSettings
Thelper ThelperSettings
Tenv TenvSettings
Unparam UnparamSettings
Unused StaticCheckSettings
Varcheck VarCheckSettings
@ -463,6 +464,10 @@ type ThelperSettings struct {
} `mapstructure:"tb"`
}
type TenvSettings struct {
All bool `mapstructure:"all"`
}
type UnparamSettings struct {
CheckExported bool `mapstructure:"check-exported"`
Algo string