mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-13 23:08:45 -04:00
docs: add source options to exclude-rules docs (#4105)
This commit is contained in:
parent
fe268f4ee9
commit
6dbe5c543a
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue