Skip to content

Commit

Permalink
gci: add missing custom-order setting (#3052)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamacro committed Aug 3, 2022
1 parent 452544a commit 15cba44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config/linters_settings.go
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions pkg/golinters/gci.go
Expand Up @@ -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,
}
Expand Down

0 comments on commit 15cba44

Please sign in to comment.