Skip to content

Commit 183b016

Browse files
committed
chore: fix documentation
1 parent ca832f7 commit 183b016

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.golangci.next.reference.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2792,7 +2792,7 @@ issues:
27922792
# Which dirs to exclude: issues from them won't be reported.
27932793
# Can use regexp here: `generated.*`, regexp is applied on full path,
27942794
# 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).
27962796
# "/" will be replaced by current OS file path separator to properly work on Windows.
27972797
# Default: []
27982798
exclude-dirs:

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ issues:
7474

7575
### Exclude Issues by Path
7676

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.
7878

7979
Beware that the paths that get matched here are relative to the current working directory.
8080
When the configuration contains path patterns that check for specific directories,
@@ -103,19 +103,19 @@ issues:
103103
- goconst
104104
```
105105
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:
107107

108108
```yml
109-
run:
110-
skip-files:
109+
issues:
110+
exclude-files:
111111
- path/to/a/file.go
112112
```
113113

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:
115115

116116
```yml
117-
run:
118-
skip-dirs:
117+
issues:
118+
exclude-dirs:
119119
- path/to/a/dir/
120120
```
121121

pkg/golinters/gochecknoglobals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func NewGochecknoglobals() *goanalysis.Linter {
1212

1313
// gochecknoglobals only lints test files if the `-t` flag is passed,
1414
// 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`.
1616
linterConfig := map[string]map[string]any{
1717
a.Name: {"t": true},
1818
}

0 commit comments

Comments
 (0)