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