Skip to content

Commit d1339af

Browse files
committed
docs: add section about exclude-dirs-use-default
1 parent 46db787 commit d1339af

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,18 @@ Some exclusions are considered as common, to help golangci-lint users those comm
175175

176176
If you don't want to use it you can set `issues.exclude-use-default` to `false`.
177177
{.DefaultExclusions}
178+
179+
### Default Directory Exclusions
180+
181+
By default, the reports from directory names, that match the following regular expressions, are excluded:
182+
183+
- `third_party$`
184+
- `examples$`
185+
- `Godeps$`
186+
- `builtin$`
187+
188+
This option has been defined when Go modules was not existed and when the golangci-lint core was different, this is not something we still recommend.
189+
190+
At some point, we will remove all those obsolete exclusions, but as it's a breaking changes it will only happen inside a major version.
191+
192+
So we recommend setting `issues.exclude-dirs-use-default` to `false`.

0 commit comments

Comments
 (0)