File tree 3 files changed +9
-9
lines changed 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2792,7 +2792,7 @@ issues:
2792
2792
# Which dirs to exclude: issues from them won't be reported.
2793
2793
# Can use regexp here: `generated.*`, regexp is applied on full path,
2794
2794
# including the path prefix if one is set.
2795
- # Default dirs are skipped independently of this option's value (see skip -dirs-use-default).
2795
+ # Default dirs are skipped independently of this option's value (see exclude -dirs-use-default).
2796
2796
# "/" will be replaced by current OS file path separator to properly work on Windows.
2797
2797
# Default: []
2798
2798
exclude-dirs :
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ issues:
74
74
75
75
### Exclude Issues by Path
76
76
77
- Exclude issues in path by ` run.skip -dirs` , ` run.skip -files` or ` issues.exclude-rules ` config options.
77
+ Exclude issues in path by ` issues.exclude -dirs` , ` issues.exclude -files` or ` issues.exclude-rules ` config options.
78
78
79
79
Beware that the paths that get matched here are relative to the current working directory.
80
80
When the configuration contains path patterns that check for specific directories,
@@ -103,19 +103,19 @@ issues:
103
103
- goconst
104
104
` ` `
105
105
106
- In the following example, all the reports related to the files (` skip -files`) are excluded:
106
+ In the following example, all the reports related to the files (` exclude -files`) are excluded:
107
107
108
108
` ` ` yml
109
- run :
110
- skip -files:
109
+ issues :
110
+ exclude -files:
111
111
- path/to/a/file.go
112
112
` ` `
113
113
114
- In the following example, all the reports related to the directories (`skip -dirs`) are excluded :
114
+ In the following example, all the reports related to the directories (`exclude -dirs`) are excluded :
115
115
116
116
` ` ` yml
117
- run :
118
- skip -dirs:
117
+ issues :
118
+ exclude -dirs:
119
119
- path/to/a/dir/
120
120
` ` `
121
121
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ func NewGochecknoglobals() *goanalysis.Linter {
12
12
13
13
// gochecknoglobals only lints test files if the `-t` flag is passed,
14
14
// so we pass the `t` flag as true to the analyzer before running it.
15
- // This can be turned off by using the regular golangci-lint flags such as `--tests` or `--skip -files`.
15
+ // This can be turned off by using the regular golangci-lint flags such as `--tests` or `--exclude -files`.
16
16
linterConfig := map [string ]map [string ]any {
17
17
a .Name : {"t" : true },
18
18
}
You can’t perform that action at this time.
0 commit comments