Skip to content

Commit 9c5ec81

Browse files
authored
funcorder: add missing Function field (#6627)
1 parent 665ac6a commit 9c5ec81

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/config/linters_settings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ type FuncOrderSettings struct {
493493
Constructor bool `mapstructure:"constructor,omitempty"`
494494
StructMethod bool `mapstructure:"struct-method,omitempty"`
495495
Alphabetical bool `mapstructure:"alphabetical,omitempty"`
496+
Function bool `mapstructure:"function,omitempty"`
496497
}
497498

498499
type FunlenSettings struct {

pkg/golinters/funcorder/funcorder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func New(settings *config.FuncOrderSettings) *goanalysis.Linter {
1515
analyzer.ConstructorCheckName: settings.Constructor,
1616
analyzer.StructMethodCheckName: settings.StructMethod,
1717
analyzer.AlphabeticalCheckName: settings.Alphabetical,
18+
analyzer.FunctionCheckName: settings.Function,
1819
}
1920
}
2021

0 commit comments

Comments
 (0)