From 208e9c7eb0c1b5a4e2c5dd6951a69434879589e2 Mon Sep 17 00:00:00 2001 From: Anton Telyshev Date: Sun, 5 Nov 2023 13:49:01 +0200 Subject: [PATCH] README: enable-all & disable-all examples --- README.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5ffd82bc..8e4a7162 100644 --- a/README.md +++ b/README.md @@ -46,12 +46,20 @@ $ testifylint ./... ## Configuring ### CLI -``` +```bash +# Enable all checkers. $ testifylint --enable-all ./... -$ testifylint --enable=empty,error-is-as ./... -$ testifylint --enable=expected-actual --expected-actual.pattern=^wanted$ ./... -$ testifylint --enable=require-error --require-error.fn-pattern="^(Errorf?|NoErrorf?)$" ./... -$ testifylint --enable=suite-extra-assert-call --suite-extra-assert-call.mode=require ./... + +# Enable specific checkers only. +$ testifylint --disable-all --enable=empty,error-is-as ./... + +# Disable specific checkers only. +$ testifylint --enable-all --disable=empty,error-is-as ./... + +# Checkers configuration. +$ testifylint --expected-actual.pattern=^wanted$ ./... +$ testifylint --require-error.fn-pattern="^(Errorf?|NoErrorf?)$" ./... +$ testifylint --suite-extra-assert-call.mode=require ./... ``` ### golangci-lint