@@ -102,6 +102,7 @@ func enableLinterConfigs(lcs []*linter.Config, isEnabled func(lc *linter.Config)
102
102
func (m Manager ) GetAllSupportedLinterConfigs () []* linter.Config {
103
103
var bidichkCfg * config.BiDiChkSettings
104
104
var cyclopCfg * config.Cyclop
105
+ var decorderCfg * config.DecorderSettings
105
106
var errchkjsonCfg * config.ErrChkJSONSettings
106
107
var errorlintCfg * config.ErrorLintSettings
107
108
var exhaustiveCfg * config.ExhaustiveSettings
@@ -131,6 +132,7 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
131
132
bidichkCfg = & m .cfg .LintersSettings .BiDiChk
132
133
cyclopCfg = & m .cfg .LintersSettings .Cyclop
133
134
errchkjsonCfg = & m .cfg .LintersSettings .ErrChkJSON
135
+ decorderCfg = & m .cfg .LintersSettings .Decorder
134
136
errorlintCfg = & m .cfg .LintersSettings .ErrorLint
135
137
exhaustiveCfg = & m .cfg .LintersSettings .Exhaustive
136
138
exhaustiveStructCfg = & m .cfg .LintersSettings .ExhaustiveStruct
@@ -189,6 +191,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
189
191
WithPresets (linter .PresetComplexity ).
190
192
WithURL ("https://github.com/bkielbasa/cyclop" ),
191
193
194
+ linter .NewConfig (golinters .NewDecorder (decorderCfg )).
195
+ WithSince ("v1.44.0" ).
196
+ WithPresets (linter .PresetFormatting , linter .PresetStyle ).
197
+ WithURL ("https://gitlab.com/bosi/decorder" ),
198
+
192
199
linter .NewConfig (golinters .NewDeadcode ()).
193
200
WithSince ("v1.0.0" ).
194
201
WithLoadForGoAnalysis ().
0 commit comments