@@ -369,16 +369,6 @@ linters-settings:
369
369
# Default: false
370
370
default-case-required : true
371
371
372
- exhaustivestruct :
373
- # Struct Patterns is list of expressions to match struct packages and names.
374
- # The struct packages have the form `example.com/package.ExampleStruct`.
375
- # The matching patterns can use matching syntax from https://pkg.go.dev/path#Match.
376
- # If this list is empty, all structs are tested.
377
- # Default: []
378
- struct-patterns :
379
- - ' *.Test'
380
- - ' example.com/package.ExampleStruct'
381
-
382
372
exhaustruct :
383
373
# List of regular expressions to match struct packages and their names.
384
374
# Regular expressions must match complete canonical struct package/name/structname.
@@ -772,11 +762,6 @@ linters-settings:
772
762
# Default: ""
773
763
local-prefixes : github.com/org/project
774
764
775
- golint :
776
- # Minimal confidence for issues.
777
- # Default: 0.8
778
- min-confidence : 0.7
779
-
780
765
gomnd :
781
766
# List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
782
767
# Default: ["argument", "case", "condition", "operation", "return", "assign"]
@@ -1241,15 +1226,6 @@ linters-settings:
1241
1226
# Default: false
1242
1227
var-require-grouping : true
1243
1228
1244
- ifshort :
1245
- # Maximum length of variable declaration measured in number of lines, after which linter won't suggest using short syntax.
1246
- # Has higher priority than max-decl-chars.
1247
- # Default: 1
1248
- max-decl-lines : 2
1249
- # Maximum length of variable declaration measured in number of characters, after which linter won't suggest using short syntax.
1250
- # Default: 30
1251
- max-decl-chars : 40
1252
-
1253
1229
importas :
1254
1230
# Do not allow unaliased imports of aliased packages.
1255
1231
# Default: false
@@ -1353,11 +1329,6 @@ linters-settings:
1353
1329
# Default: false
1354
1330
always : true
1355
1331
1356
- maligned :
1357
- # Print struct with more effective memory layout or not.
1358
- # Default: false
1359
- suggest-new : true
1360
-
1361
1332
misspell :
1362
1333
# Correct spellings using locale preferences for US or UK.
1363
1334
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
@@ -2338,11 +2309,6 @@ linters-settings:
2338
2309
# Default: true
2339
2310
generated-is-used : false
2340
2311
2341
- varcheck :
2342
- # Check usage of exported fields and variables.
2343
- # Default: false
2344
- exported-fields : true
2345
-
2346
2312
varnamelen :
2347
2313
# The longest distance, in source lines, that is being considered a "small scope".
2348
2314
# Variables used in at most this many lines will be ignored.
@@ -2519,7 +2485,6 @@ linters:
2519
2485
- contextcheck
2520
2486
- copyloopvar
2521
2487
- cyclop
2522
- - deadcode
2523
2488
- decorder
2524
2489
- depguard
2525
2490
- dogsled
@@ -2532,7 +2497,6 @@ linters:
2532
2497
- errorlint
2533
2498
- execinquery
2534
2499
- exhaustive
2535
- - exhaustivestruct
2536
2500
- exhaustruct
2537
2501
- exportloopref
2538
2502
- forbidigo
@@ -2555,7 +2519,6 @@ linters:
2555
2519
- gofumpt
2556
2520
- goheader
2557
2521
- goimports
2558
- - golint
2559
2522
- gomnd
2560
2523
- gomoddirectives
2561
2524
- gomodguard
@@ -2565,19 +2528,16 @@ linters:
2565
2528
- gosmopolitan
2566
2529
- govet
2567
2530
- grouper
2568
- - ifshort
2569
2531
- importas
2570
2532
- inamedparam
2571
2533
- ineffassign
2572
2534
- interfacebloat
2573
- - interfacer
2574
2535
- intrange
2575
2536
- ireturn
2576
2537
- lll
2577
2538
- loggercheck
2578
2539
- maintidx
2579
2540
- makezero
2580
- - maligned
2581
2541
- mirror
2582
2542
- misspell
2583
2543
- musttag
@@ -2589,7 +2549,6 @@ linters:
2589
2549
- noctx
2590
2550
- nolintlint
2591
2551
- nonamedreturns
2592
- - nosnakecase
2593
2552
- nosprintfhostport
2594
2553
- paralleltest
2595
2554
- perfsprint
@@ -2600,12 +2559,10 @@ linters:
2600
2559
- reassign
2601
2560
- revive
2602
2561
- rowserrcheck
2603
- - scopelint
2604
2562
- sloglint
2605
2563
- spancheck
2606
2564
- sqlclosecheck
2607
2565
- staticcheck
2608
- - structcheck
2609
2566
- stylecheck
2610
2567
- tagalign
2611
2568
- tagliatelle
@@ -2620,7 +2577,6 @@ linters:
2620
2577
- unparam
2621
2578
- unused
2622
2579
- usestdlibvars
2623
- - varcheck
2624
2580
- varnamelen
2625
2581
- wastedassign
2626
2582
- whitespace
@@ -2642,7 +2598,6 @@ linters:
2642
2598
- contextcheck
2643
2599
- copyloopvar
2644
2600
- cyclop
2645
- - deadcode
2646
2601
- decorder
2647
2602
- depguard
2648
2603
- dogsled
@@ -2655,7 +2610,6 @@ linters:
2655
2610
- errorlint
2656
2611
- execinquery
2657
2612
- exhaustive
2658
- - exhaustivestruct
2659
2613
- exhaustruct
2660
2614
- exportloopref
2661
2615
- forbidigo
@@ -2678,7 +2632,6 @@ linters:
2678
2632
- gofumpt
2679
2633
- goheader
2680
2634
- goimports
2681
- - golint
2682
2635
- gomnd
2683
2636
- gomoddirectives
2684
2637
- gomodguard
@@ -2688,19 +2641,16 @@ linters:
2688
2641
- gosmopolitan
2689
2642
- govet
2690
2643
- grouper
2691
- - ifshort
2692
2644
- importas
2693
2645
- inamedparam
2694
2646
- ineffassign
2695
2647
- interfacebloat
2696
- - interfacer
2697
2648
- intrange
2698
2649
- ireturn
2699
2650
- lll
2700
2651
- loggercheck
2701
2652
- maintidx
2702
2653
- makezero
2703
- - maligned
2704
2654
- mirror
2705
2655
- misspell
2706
2656
- musttag
@@ -2712,7 +2662,6 @@ linters:
2712
2662
- noctx
2713
2663
- nolintlint
2714
2664
- nonamedreturns
2715
- - nosnakecase
2716
2665
- nosprintfhostport
2717
2666
- paralleltest
2718
2667
- perfsprint
@@ -2723,12 +2672,10 @@ linters:
2723
2672
- reassign
2724
2673
- revive
2725
2674
- rowserrcheck
2726
- - scopelint
2727
2675
- sloglint
2728
2676
- spancheck
2729
2677
- sqlclosecheck
2730
2678
- staticcheck
2731
- - structcheck
2732
2679
- stylecheck
2733
2680
- tagalign
2734
2681
- tagliatelle
@@ -2743,13 +2690,22 @@ linters:
2743
2690
- unparam
2744
2691
- unused
2745
2692
- usestdlibvars
2746
- - varcheck
2747
2693
- varnamelen
2748
2694
- wastedassign
2749
2695
- whitespace
2750
2696
- wrapcheck
2751
2697
- wsl
2752
2698
- zerologlint
2699
+ - deadcode # Deprecated
2700
+ - exhaustivestruct # Deprecated
2701
+ - golint # Deprecated
2702
+ - ifshort # Deprecated
2703
+ - interfacer # Deprecated
2704
+ - maligned # Deprecated
2705
+ - nosnakecase # Deprecated
2706
+ - scopelint # Deprecated
2707
+ - structcheck # Deprecated
2708
+ - varcheck # Deprecated
2753
2709
2754
2710
# Enable presets.
2755
2711
# https://golangci-lint.run/usage/linters
0 commit comments