chore: increase the linter's general prissiness

This commit is contained in:
Emmanuel BENOîT 2024-07-19 21:47:53 +02:00
parent 7f0dd549fd
commit 43e4f2a6f0
Signed by: Emmanuel BENOîT
SSH key fingerprint: SHA256:l7PFUUF5TCDsvYeQC9OnTNz08dFY7Fvf4Hv3neIqYpg

36
.golangci.yml Normal file
View file

@ -0,0 +1,36 @@
run:
tests: false
linters:
enable-all: true
disable:
- execinquery
- exhaustruct
- forbidigo
- gochecknoglobals
- gofumpt
- gomnd
- ireturn
- mnd
- nlreturn
- nonamedreturns
- wrapcheck
- wsl
linters-settings:
depguard:
rules:
Main:
list-mode: strict
files:
- $all
allow:
- $gostd
- nocternity.net/gomonop
- github.com/karrick/golf
- github.com/miekg/dns
gci:
sections:
- standard
- default
- localmodule