Setup and run go linters

This commit is contained in:
2024-09-29 22:12:58 +02:00
parent b20c66d257
commit a8da48b557
5 changed files with 57 additions and 16 deletions

18
backend/.golangci.yml Normal file
View File

@@ -0,0 +1,18 @@
linters:
enable:
- gofmt
- revive
- govet
- errcheck
- staticcheck
- unused
- gosimple
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
run:
timeout: 5m
tests: true