chore: enable some more linters (#16)

This commit is contained in:
Julian Tölle 2024-08-23 22:35:06 +02:00 committed by GitHub
parent f0eed8cc56
commit d5fd606577
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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