@@ -502,45 +502,42 @@ linters:
502
502
default-case-required : true
503
503
504
504
exhaustruct :
505
- # List of regular expressions to match type names that should be
506
- # processed. Anonymous structs can be matched by '<anonymous>' alias.
505
+ # List of regular expressions to match type names that should be processed.
506
+ # Anonymous structs can be matched by '<anonymous>' alias.
507
507
#
508
508
# Each regular expression must match the full type name, including package path.
509
- # For example, to match type `net/http.Cookie` regular expression should be
510
- # `.*/http\.Cookie`, but not `http\.Cookie`.
511
- #
509
+ # For example, to match type `net/http.Cookie` regular expression should be `.*/http\.Cookie`,
510
+ # but not `http\.Cookie`.
512
511
# Default: []
513
512
include :
514
513
- ' .+\.Test'
515
514
- ' example\.com/package\.ExampleStruct[\d]{1,2}'
516
- # List of regular expressions to match type names that should be
517
- # excluded from processing. Anonymous structs can be matched by '<anonymous>'
518
- # alias.
519
- # Has precedence over IncludeRx.
515
+ # List of regular expressions to match type names that should be excluded from processing.
516
+ # Anonymous structs can be matched by '<anonymous>' alias.
517
+ # Has precedence over `include`.
520
518
# Each regular expression must match the full type name, including package path.
521
- # For example, to match type `net/http.Cookie` regular expression should be
522
- # `.*/http\.Cookie`, but not `http\.Cookie`.
519
+ # For example, to match type `net/http.Cookie` regular expression should be `.*/http\.Cookie`,
520
+ # but not `http\.Cookie`.
523
521
# Default: []
524
522
exclude :
525
523
- ' .+/cobra\.Command$'
526
- # AllowEmpty allows empty structures, effectively excluding them from the check.
524
+ # Allows empty structures, effectively excluding them from the check.
527
525
# Default: false
528
- allow-empty : false
529
- # List of regular expressions to match type names that should be
530
- # allowed to be empty. Anonymous structs can be matched by '<anonymous>'
531
- # alias.
526
+ allow-empty : true
527
+ # List of regular expressions to match type names that should be allowed to be empty.
528
+ # Anonymous structs can be matched by '<anonymous>' alias.
532
529
# Each regular expression must match the full type name, including package path.
533
- # For example, to match type `net/http.Cookie` regular expression should be
534
- # `.*/http\.Cookie`, but not `http\.Cookie`.
530
+ # For example, to match type `net/http.Cookie` regular expression should be `.*/http\.Cookie`,
531
+ # but not `http\.Cookie`.
535
532
# Default: []
536
533
allow-empty-rx :
537
534
- ' .*/http\.Cookie'
538
535
# Allows empty structures in return statements.
539
536
# Default: false
540
- allow-empty-returns : false
537
+ allow-empty-returns : true
541
538
# Allows empty structures in variable declarations.
542
539
# Default: false
543
- allow-empty-declarations : false
540
+ allow-empty-declarations : true
544
541
545
542
fatcontext :
546
543
# Check for potential fat contexts in struct pointers.
0 commit comments