Skip to content

docs: add description for linters.default sets #5818

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
May 19, 2025
Merged
Show file tree
Hide file tree
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
10 changes: 6 additions & 4 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ version: "2"

linters:
# Default set of linters.
# The value can be: `standard`, `all`, `none`, or `fast`.
# The value can be:
# - `standard`: https://golangci-lint.run/usage/linters/#enabled-by-default
# - `all`: enables all linters by default.
# - `none`: disables all linters by default.
# - `fast`: enables only linters considered as "fast" (`golangci-lint help linters --json | jq '[ .[] | select(.fast==true) ] | map(.name)'`).
# Default: standard
default: all

# Enable specific linter.
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
- arangolint
- asasalint
Expand Down Expand Up @@ -124,8 +127,7 @@ linters:
- wsl
- zerologlint

# Disable specific linter.
# https://golangci-lint.run/usage/linters/#disabled-by-default
# Disable specific linters.
disable:
- arangolint
- asasalint
Expand Down
8 changes: 5 additions & 3 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ version: "2"

linters:
# Default set of linters.
# The value can be: `standard`, `all`, `none`, or `fast`.
# The value can be:
# - `standard`: https://golangci-lint.run/usage/linters/#enabled-by-default
# - `all`: enables all linters by default.
# - `none`: disables all linters by default.
# - `fast`: enables only linters considered as "fast" (`golangci-lint help linters --json | jq '[ .[] | select(.fast==true) ] | map(.name)'`).
# Default: standard
default: all

# Enable specific linter.
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
- asasalint
- asciicheck
Expand Down Expand Up @@ -123,7 +126,6 @@ linters:
- zerologlint

# Disable specific linter.
# https://golangci-lint.run/usage/linters/#disabled-by-default
disable:
- asasalint
- asciicheck
Expand Down
Loading