lint: Enable "gocritic" linter.

This commit is contained in:
Joachim Bauch 2025-12-04 11:13:27 +01:00
commit 697f659083
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -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