We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
custom-order
1 parent 452544a commit 15cba44Copy full SHA for 15cba44
pkg/config/linters_settings.go
@@ -287,6 +287,7 @@ type GciSettings struct {
287
LocalPrefixes string `mapstructure:"local-prefixes"` // Deprecated
288
Sections []string `mapstructure:"sections"`
289
SkipGenerated bool `mapstructure:"skip-generated"`
290
+ CustomOrder bool `mapstructure:"custom-order"`
291
}
292
293
type GocognitSettings struct {
pkg/golinters/gci.go
@@ -37,6 +37,7 @@ func NewGci(settings *config.GciSettings) *goanalysis.Linter {
37
rawCfg := gcicfg.YamlConfig{
38
Cfg: gcicfg.BoolConfig{
39
SkipGenerated: settings.SkipGenerated,
40
+ CustomOrder: settings.CustomOrder,
41
},
42
SectionStrings: settings.Sections,
43
0 commit comments