Skip to content

Commit 79fb722

Browse files
authored
docs: add description for linters.default sets (#5818)
1 parent 1c222b4 commit 79fb722

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.golangci.next.reference.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ version: "2"
1010

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

1721
# Enable specific linter.
18-
# https://golangci-lint.run/usage/linters/#enabled-by-default
1922
enable:
2023
- arangolint
2124
- asasalint
@@ -124,8 +127,7 @@ linters:
124127
- wsl
125128
- zerologlint
126129

127-
# Disable specific linter.
128-
# https://golangci-lint.run/usage/linters/#disabled-by-default
130+
# Disable specific linters.
129131
disable:
130132
- arangolint
131133
- asasalint

.golangci.reference.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ version: "2"
1010

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

1721
# Enable specific linter.
18-
# https://golangci-lint.run/usage/linters/#enabled-by-default
1922
enable:
2023
- asasalint
2124
- asciicheck
@@ -123,7 +126,6 @@ linters:
123126
- zerologlint
124127

125128
# Disable specific linter.
126-
# https://golangci-lint.run/usage/linters/#disabled-by-default
127129
disable:
128130
- asasalint
129131
- asciicheck

0 commit comments

Comments
 (0)