gci: add missing custom-order
setting (#3052)
This commit is contained in:
parent
452544a2e7
commit
15cba447fd
@ -287,6 +287,7 @@ type GciSettings struct {
|
||||
LocalPrefixes string `mapstructure:"local-prefixes"` // Deprecated
|
||||
Sections []string `mapstructure:"sections"`
|
||||
SkipGenerated bool `mapstructure:"skip-generated"`
|
||||
CustomOrder bool `mapstructure:"custom-order"`
|
||||
}
|
||||
|
||||
type GocognitSettings struct {
|
||||
|
@ -37,6 +37,7 @@ func NewGci(settings *config.GciSettings) *goanalysis.Linter {
|
||||
rawCfg := gcicfg.YamlConfig{
|
||||
Cfg: gcicfg.BoolConfig{
|
||||
SkipGenerated: settings.SkipGenerated,
|
||||
CustomOrder: settings.CustomOrder,
|
||||
},
|
||||
SectionStrings: settings.Sections,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user