Add golangci-lint configuration file

This commit is contained in:
Simon Symeonidis
2025-05-17 21:56:14 -04:00
parent a23e7d382d
commit 847ac4bc11
+48
View File
@@ -0,0 +1,48 @@
run:
go: "1.21"
issues-exit-code: 1
tests: true
timeout: 10m
linters:
enable:
- unused
disable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- gocheckcompilerdirectives
- gochecksumtype
- gosec
- gosmopolitan
- govet
- loggercheck
- makezero
- musttag
- nilerr
- nilnesserr
- noctx
- protogetter
- reassign
- recvcheck
- rowserrcheck
- spancheck
- sqlclosecheck
- staticcheck
- testifylint
- unparam
- zerologlint
presets:
- bugs
- unused
fast: false
linters-settings:
gofmt:
simplify: true