Add golangci config

This commit is contained in:
kolaente 2020-10-11 18:28:45 +02:00
parent 8bbdab7cfa
commit dbdad76bf3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 34 additions and 0 deletions

34
.golangci.yml Normal file
View File

@ -0,0 +1,34 @@
run:
timeout: 1m
tests: true
linters:
enable:
- megacheck
- govet
# - goconst
# - gocritic
# - gocyclo
# - goerr113
# - goheader # TODO: Needs config
- gofmt
- goimports
- golint
- gomnd
- lll
- maligned
- misspell
- nestif
- nlreturn
presets:
- bugs
- unused
fast: false
issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gocyclo
- deadcode