diff --git a/pkg/config/linters_settings.go b/pkg/config/linters_settings.go index 14bf13cfd804..d4dfcfea8fdb 100644 --- a/pkg/config/linters_settings.go +++ b/pkg/config/linters_settings.go @@ -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 { diff --git a/pkg/golinters/gci.go b/pkg/golinters/gci.go index 0f719513d794..d07c2126d101 100644 --- a/pkg/golinters/gci.go +++ b/pkg/golinters/gci.go @@ -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, }