@@ -529,22 +529,32 @@ linters-settings:
529529 ignore-strings : ' foo.+'
530530
531531 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`.
536542 enabled-checks :
537543 - nestingReduce
538544 - unnamedResult
539545 - ruleguard
540546 - truncateCmp
541547
548+ # Enable all checks.
549+ # Default: false
550+ enable-all : true
542551 # Which checks should be disabled; can't be combined with 'enabled-checks'.
543552 # Default: []
544553 disabled-checks :
545554 - regexpMust
546555
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.
548558 # See https://github.com/go-critic/go-critic#usage -> section "Tags".
549559 # Default: []
550560 enabled-tags :
0 commit comments