Skip to content

docs: adds a section about exclude-dirs-use-default #5045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/src/docs/usage/false-positives.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,18 @@ Some exclusions are considered as common, to help golangci-lint users those comm

If you don't want to use it you can set `issues.exclude-use-default` to `false`.
{.DefaultExclusions}

### Default Directory Exclusions

By default, the reports from directory names, that match the following regular expressions, are excluded:

- `third_party$`
- `examples$`
- `Godeps$`
- `builtin$`

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.

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.

So we recommend setting `issues.exclude-dirs-use-default` to `false`.
Loading