Skip to content

Commit 6dbe5c5

Browse files
docs: add source options to exclude-rules docs (#4105)
1 parent fe268f4 commit 6dbe5c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/docs/usage/false-positives.mdx

+10
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ issues:
5353
text: "mnd: Magic number: 9"
5454
```
5555

56+
In the following example, all the reports from the linters (`linters`) that originated from the source (`source`) are excluded:
57+
58+
```yml
59+
issues:
60+
exclude-rules:
61+
- linters:
62+
- lll
63+
source: "^//go:generate "
64+
```
65+
5666
In the following example, all the reports that contains the text (`text`) in the path (`path`) are excluded:
5767

5868
```yml

0 commit comments

Comments
 (0)