File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,10 @@ linters:
626
626
# Default: false
627
627
force-succeed : true
628
628
629
+ # Force adding assertion descriptions to gomega matchers.
630
+ # Default: false
631
+ force-assertion-description : true
632
+
629
633
gochecksumtype :
630
634
# Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
631
635
# Default: true
@@ -2389,6 +2393,12 @@ linters:
2389
2393
exclude : [""]
2390
2394
arguments :
2391
2395
- " make"
2396
+ # https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#enforce-switch-style
2397
+ - name : enforce-switch-style
2398
+ severity : warning
2399
+ disabled : false
2400
+ exclude : [""]
2401
+ arguments : [ "allowNoDefault" ]
2392
2402
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#error-naming
2393
2403
- name : error-naming
2394
2404
severity : warning
@@ -2679,7 +2689,7 @@ linters:
2679
2689
disabled : false
2680
2690
exclude : [""]
2681
2691
arguments :
2682
- - " fmt.Printf"
2692
+ - " ^ fmt.Printf"
2683
2693
- " myFunction"
2684
2694
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unnecessary-format
2685
2695
- name : unnecessary-format
@@ -2743,7 +2753,12 @@ linters:
2743
2753
arguments :
2744
2754
- [ "ID" ] # AllowList
2745
2755
- [ "VM" ] # DenyList
2746
- - - upper-case-const : true # Extra parameter (upper-case-const|skip-package-name-checks)
2756
+ - - skip-initialism-name-checks : true
2757
+ upper-case-const : true
2758
+ skip-package-name-checks : true
2759
+ extra-bad-package-names :
2760
+ - helpers
2761
+ - models
2747
2762
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#waitgroup-by-value
2748
2763
- name : waitgroup-by-value
2749
2764
severity : warning
Original file line number Diff line number Diff line change 599
599
" enforce-map-style" ,
600
600
" enforce-repeated-arg-type-style" ,
601
601
" enforce-slice-style" ,
602
+ " enforce-switch-style" ,
602
603
" error-naming" ,
603
604
" error-return" ,
604
605
" error-strings" ,
1509
1510
"description" : " Force using the Succeed matcher for error functions, and the HaveOccurred matcher for non-function error values." ,
1510
1511
"type" : " boolean" ,
1511
1512
"default" : false
1513
+ },
1514
+ "force-assertion-description" : {
1515
+ "description" : " Force adding assertion descriptions to gomega matchers." ,
1516
+ "type" : " boolean" ,
1517
+ "default" : false
1512
1518
}
1513
1519
}
1514
1520
},
You can’t perform that action at this time.
0 commit comments