Skip to content

Commit

Permalink
README: enable-all & disable-all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonboom committed Nov 5, 2023
1 parent af1018e commit 208e9c7
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 208e9c7

Please sign in to comment.