Skip to content

Commit

Permalink
docs: more revive examples (golangci#2459)
Browse files Browse the repository at this point in the history
  • Loading branch information
butuzov authored Jan 4, 2022
1 parent e41f428 commit 669852e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .golangci.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ linters-settings:
- name: exported
severity: warning
disable: false
arguments:
- "checkPrivateReceivers"
- "sayRepetitiveInsteadOfStutters"
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#file-header
- name: file-header
severity: warning
Expand All @@ -761,6 +764,7 @@ linters-settings:
- name: function-result-limit
severity: warning
disable: false
arguments: [ 2 ]
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#function-length
- name: function-length
severity: warning
Expand Down Expand Up @@ -878,8 +882,8 @@ linters-settings:
severity: warning
disable: false
arguments:
- - ID
- - VM
- [ "ID" ] # Allowlist
- [ "VM" ] # Denylist
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-declaration
- name: var-declaration
severity: warning
Expand Down

0 comments on commit 669852e

Please sign in to comment.