chore: enable some more linters

This commit is contained in:
Julian Tölle 2024-08-23 22:29:09 +02:00
parent f0eed8cc56
commit 63649d4397
7 changed files with 48 additions and 18 deletions

27
.golangci.yaml Normal file
View file

@ -0,0 +1,27 @@
linters:
presets:
- bugs
- error
- import
- metalinter
- module
- unused
enable:
- testifylint
disable:
# preset error
# These should probably be cleaned up at some point if we want to publish part of this as a library.
- err113 # Very annoying to define static errors everywhere
- wrapcheck # Very annoying to wrap errors everywhere
# preset import
- depguard
linters-settings:
gci:
sections:
- standard
- default
- localmodule