@@ -529,22 +529,32 @@ linters-settings:
529
529
ignore-strings : ' foo.+'
530
530
531
531
gocritic :
532
- # Which checks should be enabled; can't be combined with 'disabled-checks'.
533
- # See https://go-critic.github.io/overview#checks-overview.
534
- # To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run`.
535
- # By default, list of stable checks is used.
532
+ # Disable all checks.
533
+ # Default: false
534
+ disable-all : true
535
+ # Which checks should be enabled in addition to default checks; can't be combined with 'disabled-checks'.
536
+ # By default, list of stable checks is used (https://go-critic.github.io/overview#checks-overview):
537
+ # appendAssign, argOrder, assignOp, badCall, badCond, captLocal, caseOrder, codegenComment, commentFormatting,
538
+ # defaultCaseOrder, deprecatedComment, dupArg, dupBranchBody, dupCase, dupSubExpr, elseif, exitAfterDefer,
539
+ # flagDeref, flagName, ifElseChain, mapKey, newDeref, offBy1, regexpMust, singleCaseSwitch, sloppyLen,
540
+ # sloppyTypeAssert, switchTrue, typeSwitchVar, underef, unlambda, unslice, valSwap, wrapperFunc
541
+ # To see which checks are enabled run `GL_DEBUG=gocritic golangci-lint run --enable=gocritic`.
536
542
enabled-checks :
537
543
- nestingReduce
538
544
- unnamedResult
539
545
- ruleguard
540
546
- truncateCmp
541
547
548
+ # Enable all checks.
549
+ # Default: false
550
+ enable-all : true
542
551
# Which checks should be disabled; can't be combined with 'enabled-checks'.
543
552
# Default: []
544
553
disabled-checks :
545
554
- regexpMust
546
555
547
- # Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
556
+ # Enable multiple checks by tags in addition to default checks.
557
+ # Run `GL_DEBUG=gocritic golangci-lint run --enable=gocritic` to see all tags and checks.
548
558
# See https://github.com/go-critic/go-critic#usage -> section "Tags".
549
559
# Default: []
550
560
enabled-tags :
0 commit comments