Skip to content

Commit 208e9c7

Browse files
committed
README: enable-all & disable-all examples
1 parent af1018e commit 208e9c7

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,20 @@ $ testifylint ./...
4646
## Configuring
4747

4848
### CLI
49-
```
49+
```bash
50+
# Enable all checkers.
5051
$ testifylint --enable-all ./...
51-
$ testifylint --enable=empty,error-is-as ./...
52-
$ testifylint --enable=expected-actual --expected-actual.pattern=^wanted$ ./...
53-
$ testifylint --enable=require-error --require-error.fn-pattern="^(Errorf?|NoErrorf?)$" ./...
54-
$ testifylint --enable=suite-extra-assert-call --suite-extra-assert-call.mode=require ./...
52+
53+
# Enable specific checkers only.
54+
$ testifylint --disable-all --enable=empty,error-is-as ./...
55+
56+
# Disable specific checkers only.
57+
$ testifylint --enable-all --disable=empty,error-is-as ./...
58+
59+
# Checkers configuration.
60+
$ testifylint --expected-actual.pattern=^wanted$ ./...
61+
$ testifylint --require-error.fn-pattern="^(Errorf?|NoErrorf?)$" ./...
62+
$ testifylint --suite-extra-assert-call.mode=require ./...
5563
```
5664

5765
### golangci-lint

0 commit comments

Comments
 (0)