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:
626626 # Default: false
627627 force-succeed : true
628628
629+ # Force adding assertion descriptions to gomega matchers.
630+ # Default: false
631+ force-assertion-description : true
632+
629633 gochecksumtype :
630634 # Presence of `default` case in switch statements satisfies exhaustiveness, if all members are not listed.
631635 # Default: true
@@ -2389,6 +2393,12 @@ linters:
23892393 exclude : [""]
23902394 arguments :
23912395 - " 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" ]
23922402 # https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#error-naming
23932403 - name : error-naming
23942404 severity : warning
@@ -2679,7 +2689,7 @@ linters:
26792689 disabled : false
26802690 exclude : [""]
26812691 arguments :
2682- - " fmt.Printf"
2692+ - " ^ fmt.Printf"
26832693 - " myFunction"
26842694 # https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#unnecessary-format
26852695 - name : unnecessary-format
@@ -2743,7 +2753,12 @@ linters:
27432753 arguments :
27442754 - [ "ID" ] # AllowList
27452755 - [ "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
27472762 # https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#waitgroup-by-value
27482763 - name : waitgroup-by-value
27492764 severity : warning
Original file line number Diff line number Diff line change 599599 " enforce-map-style" ,
600600 " enforce-repeated-arg-type-style" ,
601601 " enforce-slice-style" ,
602+ " enforce-switch-style" ,
602603 " error-naming" ,
603604 " error-return" ,
604605 " error-strings" ,
15091510 "description" : " Force using the Succeed matcher for error functions, and the HaveOccurred matcher for non-function error values." ,
15101511 "type" : " boolean" ,
15111512 "default" : false
1513+ },
1514+ "force-assertion-description" : {
1515+ "description" : " Force adding assertion descriptions to gomega matchers." ,
1516+ "type" : " boolean" ,
1517+ "default" : false
15121518 }
15131519 }
15141520 },
You can’t perform that action at this time.
0 commit comments