docs: add source options to exclude-rules docs (#4105)

This commit is contained in:
Hendry Wiranto 2023-10-07 05:47:16 +07:00 committed by GitHub
parent fe268f4ee9
commit 6dbe5c543a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,6 +53,16 @@ issues:
text: "mnd: Magic number: 9"
```
In the following example, all the reports from the linters (`linters`) that originated from the source (`source`) are excluded:
```yml
issues:
exclude-rules:
- linters:
- lll
source: "^//go:generate "
```
In the following example, all the reports that contains the text (`text`) in the path (`path`) are excluded:
```yml