Added golangci linting and improved what was required
This commit is contained in:
committed by
ncthompson
parent
206159cdea
commit
2456f45836
29
.golangci.yml
Normal file
29
.golangci.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
run:
|
||||
deadline: 10m
|
||||
|
||||
linters:
|
||||
enable-all: false
|
||||
enable:
|
||||
# Enabled by default in golangci-lint v1.13.2
|
||||
- deadcode
|
||||
- errcheck
|
||||
- govet
|
||||
- ineffassign
|
||||
- typecheck
|
||||
- varcheck
|
||||
# Disabled by default in golangci-lint v1.13.2
|
||||
- dupl
|
||||
- goconst
|
||||
- gofmt
|
||||
- golint
|
||||
- unconvert
|
||||
# The following result in high memory usage (>1GB)
|
||||
# https://github.com/golangci/golangci-lint/issues/337
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- gosimple
|
||||
- unused
|
||||
|
||||
issues:
|
||||
max-per-linter: 0
|
||||
max-same-issues: 0
|
||||
Reference in New Issue
Block a user