Skip to content

Commit

Permalink
review: restore linter settings order
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jan 2, 2024
1 parent be44eb1 commit fe8c8c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/config/linters_settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ type LintersSettings struct {
Decorder DecorderSettings
Depguard DepGuardSettings
Dogsled DogsledSettings
DupWord DupWordSettings
Dupl DuplSettings
ErrChkJSON ErrChkJSONSettings
DupWord DupWordSettings
Errcheck ErrcheckSettings
ErrChkJSON ErrChkJSONSettings
ErrorLint ErrorLintSettings
Exhaustive ExhaustiveSettings
ExhaustiveStruct ExhaustiveStructSettings
Expand Down
4 changes: 2 additions & 2 deletions pkg/lint/lintersdb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
funlenCfg = &m.cfg.LintersSettings.Funlen
gciCfg = &m.cfg.LintersSettings.Gci
ginkgolinterCfg = &m.cfg.LintersSettings.GinkgoLinter
goMndCfg = &m.cfg.LintersSettings.Gomnd
goModDirectivesCfg = &m.cfg.LintersSettings.GoModDirectives
gocognitCfg = &m.cfg.LintersSettings.Gocognit
goconstCfg = &m.cfg.LintersSettings.Goconst
gocriticCfg = &m.cfg.LintersSettings.Gocritic
Expand All @@ -183,6 +181,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
goheaderCfg = &m.cfg.LintersSettings.Goheader
goimportsCfg = &m.cfg.LintersSettings.Goimports
golintCfg = &m.cfg.LintersSettings.Golint
goMndCfg = &m.cfg.LintersSettings.Gomnd
goModDirectivesCfg = &m.cfg.LintersSettings.GoModDirectives
gomodguardCfg = &m.cfg.LintersSettings.Gomodguard
gosecCfg = &m.cfg.LintersSettings.Gosec
gosimpleCfg = &m.cfg.LintersSettings.Gosimple
Expand Down

0 comments on commit fe8c8c6

Please sign in to comment.