Skip to content

Commit 75f7435

Browse files
authored
docs(revive): add an explanation of the default rules management (#6121)
1 parent 4d9abc8 commit 75f7435

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.golangci.next.reference.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,9 @@ linters:
23302330
# This means that linting errors with less than 0.8 confidence will be ignored.
23312331
# Default: 0.8
23322332
confidence: 0.1
2333+
# Revive handles the default rules in a way that can be unexpected:
2334+
# - If there are no explicit rules, the default rules are used.
2335+
# - If there is at least one explicit rule, the default rules are not used.
23332336
# Run `GL_DEBUG=revive golangci-lint run --enable-only=revive` to see default, all available rules, and enabled rules.
23342337
rules:
23352338
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#add-constant

.golangci.reference.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,6 +2330,9 @@ linters:
23302330
# This means that linting errors with less than 0.8 confidence will be ignored.
23312331
# Default: 0.8
23322332
confidence: 0.1
2333+
# Revive handles the default rules in a way that can be unexpected:
2334+
# - If there are no explicit rules, the default rules are used.
2335+
# - If there is at least one explicit rule, the default rules are not used.
23332336
# Run `GL_DEBUG=revive golangci-lint run --enable-only=revive` to see default, all available rules, and enabled rules.
23342337
rules:
23352338
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#add-constant

0 commit comments

Comments
 (0)