Add golangci config

This commit is contained in:
Christian Muehlhaeuser 2020-08-24 15:45:04 +02:00
parent 8f69da6ba0
commit 0357859c8b
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E
1 changed files with 26 additions and 0 deletions

26
.golangci.yml Normal file
View File

@ -0,0 +1,26 @@
run:
tests: false
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- bodyclose
- dupl
- exportloopref
- goconst
- godot
- godox
- goimports
- gomnd
- goprintffuncname
- gosec
- misspell
- prealloc
- rowserrcheck
- sqlclosecheck
- unconvert
- unparam
- whitespace