docs: add source options to exclude-rules docs (#4105)
This commit is contained in:
parent
fe268f4ee9
commit
6dbe5c543a
@ -53,6 +53,16 @@ issues:
|
|||||||
text: "mnd: Magic number: 9"
|
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:
|
In the following example, all the reports that contains the text (`text`) in the path (`path`) are excluded:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user