🚨 Add some tooling/ linting

This commit is contained in:
Dan Jones 2025-09-07 22:01:33 -05:00
commit dc577bcb9c
5 changed files with 120 additions and 7 deletions

48
.golangci.yaml Normal file
View file

@ -0,0 +1,48 @@
version: "2"
linters:
enable:
- errcheck
- govet
- ineffassign
- staticcheck
- unused
- copyloopvar
- dupl
- err113
- errname
- exptostd
- fatcontext
- funlen
- gocognit
- goconst
- gocritic
- gocyclo
- godot
- godox
- gosec
- perfsprint
- testifylint
exclusions:
rules:
- path: '(.+)_test\.go'
linters:
- errcheck
- err113
- gosec
- gocognit
- gocyclo
settings:
testifylint:
enable-all: true
disable:
- require-error
gocognit:
min-complexity: 10
gocyclo:
min-complexity: 10
gocritic:
enable-all: true
settings:
hugeParam:
sizeThreshold: 255