mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
lint: Enable "gocritic" linter.
This commit is contained in:
parent
6d3ff0c5ba
commit
697f659083
1 changed files with 9 additions and 0 deletions
|
|
@ -3,12 +3,21 @@ linters:
|
|||
enable:
|
||||
- errchkjson
|
||||
- exptostd
|
||||
- gocritic
|
||||
- misspell
|
||||
- revive
|
||||
settings:
|
||||
errchkjson:
|
||||
check-error-free-encoding: true
|
||||
report-no-exported: true
|
||||
gocritic:
|
||||
disabled-checks:
|
||||
- singleCaseSwitch
|
||||
settings:
|
||||
ifElseChain:
|
||||
# Min number of if-else blocks that makes the warning trigger.
|
||||
# Default: 2
|
||||
minThreshold: 3
|
||||
govet:
|
||||
enable:
|
||||
- nilness
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue