Add golangci config
This commit is contained in:
parent
8bbdab7cfa
commit
dbdad76bf3
|
@ -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
|
Loading…
Reference in New Issue