@@ -190,12 +190,12 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
190
190
WithPresets (linter .PresetFormatting , linter .PresetStyle ).
191
191
WithURL ("https://gitlab.com/bosi/decorder" ),
192
192
193
- linter .NewConfig (linter .NewNoopDeprecated ("deadcode" , cfg )).
193
+ linter .NewConfig (linter .NewNoopDeprecated ("deadcode" , cfg , linter . DeprecationError )).
194
194
WithSince ("v1.0.0" ).
195
195
WithLoadForGoAnalysis ().
196
196
WithPresets (linter .PresetUnused ).
197
197
WithURL ("https://github.com/remyoudompheng/go-misc/tree/master/deadcode" ).
198
- Deprecated ("The owner seems to have abandoned the linter." , "v1.49.0" , "unused" ),
198
+ DeprecatedError ("The owner seems to have abandoned the linter." , "v1.49.0" , "unused" ),
199
199
200
200
linter .NewConfig (depguard .New (& cfg .LintersSettings .Depguard )).
201
201
WithSince ("v1.4.0" ).
@@ -253,20 +253,20 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
253
253
WithPresets (linter .PresetSQL ).
254
254
WithLoadForGoAnalysis ().
255
255
WithURL ("https://github.com/1uf3/execinquery" ).
256
- Deprecated ("The repository of the linter has been archived by the owner." , "v1.58.0" , "" ),
256
+ DeprecatedWarning ("The repository of the linter has been archived by the owner." , "v1.58.0" , "" ),
257
257
258
258
linter .NewConfig (exhaustive .New (& cfg .LintersSettings .Exhaustive )).
259
259
WithSince (" v1.28.0" ).
260
260
WithPresets (linter .PresetBugs ).
261
261
WithLoadForGoAnalysis ().
262
262
WithURL ("https://github.com/nishanths/exhaustive" ),
263
263
264
- linter .NewConfig (linter .NewNoopDeprecated ("exhaustivestruct" , cfg )).
264
+ linter .NewConfig (linter .NewNoopDeprecated ("exhaustivestruct" , cfg , linter . DeprecationError )).
265
265
WithSince ("v1.32.0" ).
266
266
WithPresets (linter .PresetStyle , linter .PresetTest ).
267
267
WithLoadForGoAnalysis ().
268
268
WithURL ("https://github.com/mbilski/exhaustivestruct" ).
269
- Deprecated ("The repository of the linter has been deprecated by the owner." , "v1.46.0" , "exhaustruct" ),
269
+ DeprecatedError ("The repository of the linter has been deprecated by the owner." , "v1.46.0" , "exhaustruct" ),
270
270
271
271
linter .NewConfig (exhaustruct .New (& cfg .LintersSettings .Exhaustruct )).
272
272
WithSince ("v1.46.0" ).
@@ -403,12 +403,12 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
403
403
WithAutoFix ().
404
404
WithURL ("https://pkg.go.dev/golang.org/x/tools/cmd/goimports" ),
405
405
406
- linter .NewConfig (linter .NewNoopDeprecated ("golint" , cfg )).
406
+ linter .NewConfig (linter .NewNoopDeprecated ("golint" , cfg , linter . DeprecationError )).
407
407
WithSince ("v1.0.0" ).
408
408
WithLoadForGoAnalysis ().
409
409
WithPresets (linter .PresetStyle ).
410
410
WithURL ("https://github.com/golang/lint" ).
411
- Deprecated ("The repository of the linter has been archived by the owner." , "v1.41.0" , "revive" ),
411
+ DeprecatedError ("The repository of the linter has been archived by the owner." , "v1.41.0" , "revive" ),
412
412
413
413
linter .NewConfig (mnd .New (& cfg .LintersSettings .Mnd )).
414
414
WithSince ("v1.22.0" ).
@@ -418,8 +418,8 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
418
418
linter .NewConfig (mnd .NewGoMND (& cfg .LintersSettings .Gomnd )).
419
419
WithSince ("v1.22.0" ).
420
420
WithPresets (linter .PresetStyle ).
421
- Deprecated ( "The linter has been renamed." , "v1.58.0" , " mnd" ).
422
- WithURL ( "https://github.com/tommy-muehle/go- mnd" ),
421
+ WithURL ( "https://github.com/tommy-muehle/go- mnd" ).
422
+ DeprecatedWarning ( "The linter has been renamed." , "v1.58.0" , " mnd" ),
423
423
424
424
linter .NewConfig (gomoddirectives .New (& cfg .LintersSettings .GoModDirectives )).
425
425
WithSince ("v1.39.0" ).
@@ -470,11 +470,11 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
470
470
WithPresets (linter .PresetStyle ).
471
471
WithURL ("https://github.com/leonklingele/grouper" ),
472
472
473
- linter .NewConfig (linter .NewNoopDeprecated ("ifshort" , cfg )).
473
+ linter .NewConfig (linter .NewNoopDeprecated ("ifshort" , cfg , linter . DeprecationError )).
474
474
WithSince ("v1.36.0" ).
475
475
WithPresets (linter .PresetStyle ).
476
476
WithURL ("https://github.com/esimonov/ifshort" ).
477
- Deprecated ("The repository of the linter has been deprecated by the owner." , "v1.48.0" , "" ),
477
+ DeprecatedError ("The repository of the linter has been deprecated by the owner." , "v1.48.0" , "" ),
478
478
479
479
linter .NewConfig (importas .New (& cfg .LintersSettings .ImportAs )).
480
480
WithSince ("v1.38.0" ).
@@ -498,12 +498,12 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
498
498
WithPresets (linter .PresetStyle ).
499
499
WithURL ("https://github.com/sashamelentyev/interfacebloat" ),
500
500
501
- linter .NewConfig (linter .NewNoopDeprecated ("interfacer" , cfg )).
501
+ linter .NewConfig (linter .NewNoopDeprecated ("interfacer" , cfg , linter . DeprecationError )).
502
502
WithSince ("v1.0.0" ).
503
503
WithLoadForGoAnalysis ().
504
504
WithPresets (linter .PresetStyle ).
505
505
WithURL ("https://github.com/mvdan/interfacer" ).
506
- Deprecated ("The repository of the linter has been archived by the owner." , "v1.38.0" , "" ),
506
+ DeprecatedError ("The repository of the linter has been archived by the owner." , "v1.38.0" , "" ),
507
507
508
508
linter .NewConfig (intrange .New ()).
509
509
WithSince ("v1.57.0" ).
@@ -538,12 +538,12 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
538
538
WithLoadForGoAnalysis ().
539
539
WithURL ("https://github.com/ashanbrown/makezero" ),
540
540
541
- linter .NewConfig (linter .NewNoopDeprecated ("maligned" , cfg )).
541
+ linter .NewConfig (linter .NewNoopDeprecated ("maligned" , cfg , linter . DeprecationError )).
542
542
WithSince ("v1.0.0" ).
543
543
WithLoadForGoAnalysis ().
544
544
WithPresets (linter .PresetPerformance ).
545
545
WithURL ("https://github.com/mdempsky/maligned" ).
546
- Deprecated ("The repository of the linter has been archived by the owner." , "v1.38.0" , "govet 'fieldalignment'" ),
546
+ DeprecatedError ("The repository of the linter has been archived by the owner." , "v1.38.0" , "govet 'fieldalignment'" ),
547
547
548
548
linter .NewConfig (mirror .New ()).
549
549
WithSince ("v1.53.0" ).
@@ -603,11 +603,11 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
603
603
WithPresets (linter .PresetStyle ).
604
604
WithURL ("https://github.com/firefart/nonamedreturns" ),
605
605
606
- linter .NewConfig (linter .NewNoopDeprecated ("nosnakecase" , cfg )).
606
+ linter .NewConfig (linter .NewNoopDeprecated ("nosnakecase" , cfg , linter . DeprecationError )).
607
607
WithSince ("v1.47.0" ).
608
608
WithPresets (linter .PresetStyle ).
609
609
WithURL ("https://github.com/sivchari/nosnakecase" ).
610
- Deprecated ("The repository of the linter has been deprecated by the owner." , "v1.48.1" , "revive 'var-naming'" ),
610
+ DeprecatedError ("The repository of the linter has been deprecated by the owner." , "v1.48.1" , "revive 'var-naming'" ),
611
611
612
612
linter .NewConfig (nosprintfhostport .New ()).
613
613
WithSince ("v1.46.0" ).
@@ -672,11 +672,11 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
672
672
WithPresets (linter .PresetStyle , linter .PresetFormatting ).
673
673
WithURL ("https://github.com/go-simpler/sloglint" ),
674
674
675
- linter .NewConfig (linter .NewNoopDeprecated ("scopelint" , cfg )).
675
+ linter .NewConfig (linter .NewNoopDeprecated ("scopelint" , cfg , linter . DeprecationError )).
676
676
WithSince ("v1.12.0" ).
677
677
WithPresets (linter .PresetBugs ).
678
678
WithURL ("https://github.com/kyoh86/scopelint" ).
679
- Deprecated ("The repository of the linter has been deprecated by the owner." , "v1.39.0" , "exportloopref" ),
679
+ DeprecatedError ("The repository of the linter has been deprecated by the owner." , "v1.39.0" , "exportloopref" ),
680
680
681
681
linter .NewConfig (sqlclosecheck .New ()).
682
682
WithSince ("v1.28.0" ).
@@ -698,12 +698,12 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
698
698
WithAlternativeNames (megacheckName ).
699
699
WithURL ("https://staticcheck.io/" ),
700
700
701
- linter .NewConfig (linter .NewNoopDeprecated ("structcheck" , cfg )).
701
+ linter .NewConfig (linter .NewNoopDeprecated ("structcheck" , cfg , linter . DeprecationError )).
702
702
WithSince ("v1.0.0" ).
703
703
WithLoadForGoAnalysis ().
704
704
WithPresets (linter .PresetUnused ).
705
705
WithURL ("https://github.com/opennota/check" ).
706
- Deprecated ("The owner seems to have abandoned the linter." , "v1.49.0" , "unused" ),
706
+ DeprecatedError ("The owner seems to have abandoned the linter." , "v1.49.0" , "unused" ),
707
707
708
708
linter .NewConfig (stylecheck .New (& cfg .LintersSettings .Stylecheck )).
709
709
WithSince ("v1.20.0" ).
@@ -788,12 +788,12 @@ func (LinterBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
788
788
WithPresets (linter .PresetStyle ).
789
789
WithURL ("https://github.com/sashamelentyev/usestdlibvars" ),
790
790
791
- linter .NewConfig (linter .NewNoopDeprecated ("varcheck" , cfg )).
791
+ linter .NewConfig (linter .NewNoopDeprecated ("varcheck" , cfg , linter . DeprecationError )).
792
792
WithSince ("v1.0.0" ).
793
793
WithLoadForGoAnalysis ().
794
794
WithPresets (linter .PresetUnused ).
795
795
WithURL ("https://github.com/opennota/check" ).
796
- Deprecated ("The owner seems to have abandoned the linter." , "v1.49.0" , "unused" ),
796
+ DeprecatedError ("The owner seems to have abandoned the linter." , "v1.49.0" , "unused" ),
797
797
798
798
linter .NewConfig (varnamelen .New (& cfg .LintersSettings .Varnamelen )).
799
799
WithSince ("v1.43.0" ).
0 commit comments