@@ -3,7 +3,6 @@ title: False Positives
3
3
---
4
4
5
5
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 ) .
7
6
8
7
If a false positive occurred, you have the several choices.
9
8
@@ -26,13 +25,11 @@ linters:
26
25
- ' -SA1004' # disable the rule SA1004
27
26
` ` `
28
27
29
- ## Exclude or Skip
28
+ ## Exclude
30
29
31
30
### Exclude Issue by Text
32
31
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.
36
33
37
34
In the following example, all the reports from the linters (`linters`) that contains the text (`text`) are excluded :
38
35
@@ -68,7 +65,7 @@ linters:
68
65
69
66
### Exclude Issues by Path
70
67
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.
72
69
73
70
In the following example, all the reports from the linters (` linters ` ) that concerns the path (` path ` ) are excluded:
74
71
@@ -107,7 +104,7 @@ linters:
107
104
In the following example, all the reports related to the directories (`paths`) are excluded :
108
105
109
106
` ` ` yaml
110
- issues :
107
+ linters :
111
108
exclusions:
112
109
paths:
113
110
- path/to/a/dir/
0 commit comments