Skip to content

docs: add arguments to a few revive rules #5562

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
Mar 17, 2025
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
21 changes: 19 additions & 2 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2284,13 +2284,19 @@ linters:
disabled: false
exclude: [""]
arguments:
- [ "call-chain", "loop" ]
- "call-chain"
- "loop"
- "method-call"
- "recover"
- "immediate-recover"
- "return"
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#dot-imports
- name: dot-imports
severity: warning
disabled: false
exclude: [""]
arguments: [ ]
arguments:
- allowedPackages: ["github.com/onsi/ginkgo/v2", "github.com/onsi/gomega"]
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#duplicated-imports
- name: duplicated-imports
severity: warning
Expand Down Expand Up @@ -2328,6 +2334,9 @@ linters:
exclude: [""]
arguments:
- "short"
# Or this parameter:
- funcArgStyle: "full"
funcRetValStyle: "short"
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#enforce-slice-style
- name: enforce-slice-style
severity: warning
Expand Down Expand Up @@ -2365,8 +2374,13 @@ linters:
arguments:
- "checkPrivateReceivers"
- "disableStutteringCheck"
- "sayRepetitiveInsteadOfStutters"
- "checkPublicInterface"
- "disableChecksOnConstants"
- "disableChecksOnFunctions"
- "disableChecksOnMethods"
- "disableChecksOnTypes"
- "disableChecksOnVariables"
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#file-header
- name: file-header
severity: warning
Expand Down Expand Up @@ -2429,6 +2443,9 @@ linters:
exclude: [""]
arguments:
- "^[a-z][a-z0-9]{0,}$"
# Or this parameter:
- allowRegex: "^[a-z][a-z0-9]{0,}$"
denyRegex: '^v\d+$'
# https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#import-shadowing
- name: import-shadowing
severity: warning
Expand Down
Loading