mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-28 22:28:43 -04:00
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:
parent
34e46c7453
commit
05836e489b
8 changed files with 68 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue