Integrate ImportAs linter (#1783)

* Integrate ImportAs linter

* review: don't panic :)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
Sergey Vilgelm 2021-02-26 13:08:49 -06:00 committed by GitHub
parent 34e46c7453
commit 05836e489b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 68 additions and 0 deletions

View file

@ -275,6 +275,7 @@ type LintersSettings struct {
Ifshort IfshortSettings
Predeclared PredeclaredSettings
Cyclop Cyclop
ImportAs ImportAsSettings
Custom map[string]CustomLinterSettings
}
@ -461,6 +462,8 @@ type Cyclop struct {
SkipTests bool `mapstructure:"skip-tests"`
}
type ImportAsSettings map[string]string
var defaultLintersSettings = LintersSettings{
Lll: LllSettings{
LineLength: 120,