@@ -474,6 +474,7 @@ linters-settings:
474
474
# ruleguard prints the specific Where() condition that was rejected.
475
475
#
476
476
# The flag is passed to the ruleguard 'debug-group' argument.
477
+ # Default: ""
477
478
debug : ' emptyDecl'
478
479
# Deprecated, use 'failOn' param.
479
480
# If set to true, identical to failOn='all', otherwise failOn=''
@@ -484,12 +485,22 @@ linters-settings:
484
485
# - 'all': fail on all errors.
485
486
# - 'import': ruleguard rule imports a package that cannot be found.
486
487
# - 'dsl': gorule file does not comply with the ruleguard DSL.
488
+ # Default: ""
487
489
failOn : dsl
488
490
# Comma-separated list of file paths containing ruleguard rules.
489
491
# If a path is relative, it is relative to the directory where the golangci-lint command is executed.
490
492
# The special '${configDir}' variable is substituted with the absolute directory containing the golangci config file.
491
493
# Glob patterns such as 'rules-*.go' may be specified.
494
+ # Default: ""
492
495
rules : ' ${configDir}/ruleguard/rules-*.go,${configDir}/myrule1.go'
496
+ # Comma-separated list of enabled groups or skip empty to enable everything.
497
+ # Tags can be defined with # character prefix.
498
+ # Default: "<all>"
499
+ enable : " myGroupName,#myTagName"
500
+ # Comma-separated list of disabled groups or skip empty to enable everything.
501
+ # Tags can be defined with # character prefix.
502
+ # Default: ""
503
+ disable : " myGroupName,#myTagName"
493
504
tooManyResultsChecker :
494
505
# Maximum number of results.
495
506
# Default: 5
0 commit comments