Skip to content

Commit 15cba44

Browse files
authored
gci: add missing custom-order setting (#3052)
1 parent 452544a commit 15cba44

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/config/linters_settings.go

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ type GciSettings struct {
287287
LocalPrefixes string `mapstructure:"local-prefixes"` // Deprecated
288288
Sections []string `mapstructure:"sections"`
289289
SkipGenerated bool `mapstructure:"skip-generated"`
290+
CustomOrder bool `mapstructure:"custom-order"`
290291
}
291292

292293
type GocognitSettings struct {

pkg/golinters/gci.go

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func NewGci(settings *config.GciSettings) *goanalysis.Linter {
3737
rawCfg := gcicfg.YamlConfig{
3838
Cfg: gcicfg.BoolConfig{
3939
SkipGenerated: settings.SkipGenerated,
40+
CustomOrder: settings.CustomOrder,
4041
},
4142
SectionStrings: settings.Sections,
4243
}

0 commit comments

Comments
 (0)