Skip to content

Commit

Permalink
docs: more revive examples
Browse files Browse the repository at this point in the history
adjustments to golangci#2458
  • Loading branch information
butuzov committed Jan 4, 2022
1 parent 3a6417c commit e6812bf
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" ] # Whitelist
- [ "VM" ] # Blacklist
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#var-declaration
- name: var-declaration
severity: warning
Expand Down

0 comments on commit e6812bf

Please sign in to comment.