Skip to content

Commit d429bc3

Browse files
committed
review
1 parent 487aee9 commit d429bc3

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ title: False Positives
33
---
44

55
False positives are inevitable, but we did our best to reduce their count.
6-
For example, we have a default enabled set of [exclude patterns](/usage/configuration#command-line-options).
76

87
If a false positive occurred, you have the several choices.
98

@@ -26,13 +25,11 @@ linters:
2625
- '-SA1004' # disable the rule SA1004
2726
```
2827
29-
## Exclude or Skip
28+
## Exclude
3029
3130
### Exclude Issue by Text
3231
33-
Exclude issue by text using command-line option `-e` or config option `issues.exclude`.
34-
It's helpful when you decided to ignore all issues of this type.
35-
Also, you can use `issues.exclude-rules` config option for per-path or per-linter configuration.
32+
You can use `linters.exclusions.rules` config option for per-path or per-linter configuration.
3633

3734
In the following example, all the reports from the linters (`linters`) that contains the text (`text`) are excluded:
3835

@@ -68,7 +65,7 @@ linters:
6865

6966
### Exclude Issues by Path
7067

71-
Exclude issues in path by `linters.exclusions.paths`, or `issues.exclude-rules` config options.
68+
Exclude issues in path by `linters.exclusions.paths` or `linters.exclusions.rules` config options.
7269

7370
In the following example, all the reports from the linters (`linters`) that concerns the path (`path`) are excluded:
7471

@@ -107,7 +104,7 @@ linters:
107104
In the following example, all the reports related to the directories (`paths`) are excluded:
108105

109106
```yaml
110-
issues:
107+
linters:
111108
exclusions:
112109
paths:
113110
- path/to/a/dir/

0 commit comments

Comments
 (0)