@@ -158,6 +158,8 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
158158
159159 const megacheckName = "megacheck"
160160
161+ // The linters are in the alphabetical order (case-insensitive).
162+ // When a new linter is added the version in `WithSince(...)` must be the next version of golangci-lint.
161163 lcs := []* linter.Config {
162164 linter .NewConfig (golinters .NewAsciicheck ()).
163165 WithSince ("v1.26.0" ).
@@ -233,6 +235,12 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
233235 WithLoadForGoAnalysis ().
234236 WithURL ("https://github.com/Antonboom/errname" ),
235237
238+ linter .NewConfig (golinters .NewErrorLint (errorlintCfg )).
239+ WithSince ("v1.32.0" ).
240+ WithPresets (linter .PresetBugs , linter .PresetError ).
241+ WithLoadForGoAnalysis ().
242+ WithURL ("https://github.com/polyfloyd/go-errorlint" ),
243+
236244 linter .NewConfig (golinters .NewExhaustive (exhaustiveCfg )).
237245 WithSince (" v1.28.0" ).
238246 WithPresets (linter .PresetBugs ).
@@ -272,39 +280,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
272280 WithAutoFix ().
273281 WithURL ("https://github.com/daixiang0/gci" ),
274282
275- linter .NewConfig (golinters .NewGocritic ()).
276- WithSince ("v1.12.0" ).
277- WithPresets (linter .PresetStyle , linter .PresetMetaLinter ).
278- WithLoadForGoAnalysis ().
279- WithURL ("https://github.com/go-critic/go-critic" ),
280-
281- linter .NewConfig (golinters .NewGoerr113 ()).
282- WithSince ("v1.26.0" ).
283- WithPresets (linter .PresetStyle , linter .PresetError ).
284- WithLoadForGoAnalysis ().
285- WithURL ("https://github.com/Djarvur/go-err113" ),
286-
287- linter .NewConfig (golinters .NewErrorLint (errorlintCfg )).
288- WithSince ("v1.32.0" ).
289- WithPresets (linter .PresetBugs , linter .PresetError ).
290- WithLoadForGoAnalysis ().
291- WithURL ("https://github.com/polyfloyd/go-errorlint" ),
292-
293- linter .NewConfig (golinters .NewGoHeader ()).
294- WithSince ("v1.28.0" ).
295- WithPresets (linter .PresetStyle ).
296- WithURL ("https://github.com/denis-tingajkin/go-header" ),
297-
298- linter .NewConfig (golinters .NewGoMND (m .cfg )).
299- WithSince ("v1.22.0" ).
300- WithPresets (linter .PresetStyle ).
301- WithURL ("https://github.com/tommy-muehle/go-mnd" ),
302-
303- linter .NewConfig (golinters .NewGoPrintfFuncName ()).
304- WithSince ("v1.23.0" ).
305- WithPresets (linter .PresetStyle ).
306- WithURL ("https://github.com/jirfag/go-printf-func-name" ),
307-
308283 linter .NewConfig (golinters .NewGochecknoglobals ()).
309284 WithSince ("v1.12.0" ).
310285 WithPresets (linter .PresetStyle ).
@@ -325,6 +300,12 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
325300 WithPresets (linter .PresetStyle ).
326301 WithURL ("https://github.com/jgautheron/goconst" ),
327302
303+ linter .NewConfig (golinters .NewGocritic ()).
304+ WithSince ("v1.12.0" ).
305+ WithPresets (linter .PresetStyle , linter .PresetMetaLinter ).
306+ WithLoadForGoAnalysis ().
307+ WithURL ("https://github.com/go-critic/go-critic" ),
308+
328309 linter .NewConfig (golinters .NewGocyclo ()).
329310 WithSince ("v1.0.0" ).
330311 WithPresets (linter .PresetComplexity ).
@@ -341,6 +322,12 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
341322 WithPresets (linter .PresetStyle , linter .PresetComment ).
342323 WithURL ("https://github.com/matoous/godox" ),
343324
325+ linter .NewConfig (golinters .NewGoerr113 ()).
326+ WithSince ("v1.26.0" ).
327+ WithPresets (linter .PresetStyle , linter .PresetError ).
328+ WithLoadForGoAnalysis ().
329+ WithURL ("https://github.com/Djarvur/go-err113" ),
330+
344331 linter .NewConfig (golinters .NewGofmt ()).
345332 WithSince ("v1.0.0" ).
346333 WithPresets (linter .PresetFormatting ).
@@ -353,12 +340,29 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
353340 WithAutoFix ().
354341 WithURL ("https://github.com/mvdan/gofumpt" ),
355342
343+ linter .NewConfig (golinters .NewGoHeader ()).
344+ WithSince ("v1.28.0" ).
345+ WithPresets (linter .PresetStyle ).
346+ WithURL ("https://github.com/denis-tingajkin/go-header" ),
347+
356348 linter .NewConfig (golinters .NewGoimports ()).
357349 WithSince ("v1.20.0" ).
358350 WithPresets (linter .PresetFormatting , linter .PresetImport ).
359351 WithAutoFix ().
360352 WithURL ("https://godoc.org/golang.org/x/tools/cmd/goimports" ),
361353
354+ linter .NewConfig (golinters .NewGolint ()).
355+ WithSince ("v1.0.0" ).
356+ WithLoadForGoAnalysis ().
357+ WithPresets (linter .PresetStyle ).
358+ WithURL ("https://github.com/golang/lint" ).
359+ Deprecated ("The repository of the linter has been archived by the owner." , "v1.41.0" , "revive" ),
360+
361+ linter .NewConfig (golinters .NewGoMND (m .cfg )).
362+ WithSince ("v1.22.0" ).
363+ WithPresets (linter .PresetStyle ).
364+ WithURL ("https://github.com/tommy-muehle/go-mnd" ),
365+
362366 linter .NewConfig (golinters .NewGoModDirectives (goModDirectivesCfg )).
363367 WithSince ("v1.39.0" ).
364368 WithPresets (linter .PresetStyle , linter .PresetModule ).
@@ -369,6 +373,11 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
369373 WithPresets (linter .PresetStyle , linter .PresetImport , linter .PresetModule ).
370374 WithURL ("https://github.com/ryancurrah/gomodguard" ),
371375
376+ linter .NewConfig (golinters .NewGoPrintfFuncName ()).
377+ WithSince ("v1.23.0" ).
378+ WithPresets (linter .PresetStyle ).
379+ WithURL ("https://github.com/jirfag/go-printf-func-name" ),
380+
372381 linter .NewConfig (golinters .NewGosec (gosecCfg )).
373382 WithSince ("v1.0.0" ).
374383 WithLoadForGoAnalysis ().
@@ -419,13 +428,6 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
419428 WithLoadForGoAnalysis ().
420429 WithURL ("https://github.com/butuzov/ireturn" ),
421430
422- linter .NewConfig (golinters .NewGolint ()).
423- WithSince ("v1.0.0" ).
424- WithLoadForGoAnalysis ().
425- WithPresets (linter .PresetStyle ).
426- WithURL ("https://github.com/golang/lint" ).
427- Deprecated ("The repository of the linter has been archived by the owner." , "v1.41.0" , "revive" ),
428-
429431 linter .NewConfig (golinters .NewLLL ()).
430432 WithSince ("v1.8.0" ).
431433 WithPresets (linter .PresetStyle ),
@@ -624,17 +626,17 @@ func (m Manager) GetAllSupportedLinterConfigs() []*linter.Config {
624626 WithAutoFix ().
625627 WithURL ("https://github.com/ultraware/whitespace" ),
626628
627- linter .NewConfig (golinters .NewWSL ()).
628- WithSince ("v1.20.0" ).
629- WithPresets (linter .PresetStyle ).
630- WithURL ("https://github.com/bombsimon/wsl" ),
631-
632629 linter .NewConfig (golinters .NewWrapcheck (wrapcheckCfg )).
633630 WithSince ("v1.32.0" ).
634631 WithPresets (linter .PresetStyle , linter .PresetError ).
635632 WithLoadForGoAnalysis ().
636633 WithURL ("https://github.com/tomarrell/wrapcheck" ),
637634
635+ linter .NewConfig (golinters .NewWSL ()).
636+ WithSince ("v1.20.0" ).
637+ WithPresets (linter .PresetStyle ).
638+ WithURL ("https://github.com/bombsimon/wsl" ),
639+
638640 // nolintlint must be last because it looks at the results of all the previous linters for unused nolint directives
639641 linter .NewConfig (golinters .NewNoLintLint ()).
640642 WithSince ("v1.26.0" ).
0 commit comments