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