status-go/.golangci.yml

64 lines
1.0 KiB
YAML
Raw Normal View History

run:
concurrency: 4
deadline: 1m
issues-exit-code: 1
tests: true
skip-dirs:
- static
skip-files:
- bindata.go
- .*_mock.go
- jail/doc.go
- contracts/
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
linters-settings:
errcheck:
check-type-assertions: false
check-blank: false
govet:
check-shadowing: false
golint:
min-confidence: 0.8
gofmt:
simplify: true
gocyclo:
min-complexity: 16
maligned:
suggest-new: true
dupl:
threshold: 50
goconst:
min-len: 3
min-occurrences: 2
linters:
disable-all: true
enable:
- deadcode
- errcheck
2018-10-17 10:17:58 +00:00
- gosec
- goconst
- gocyclo
- gofmt
- golint
- govet
- ineffassign
- megacheck
- misspell
- structcheck
- typecheck
- unconvert
- varcheck
fast: false
issues:
exclude:
- "composite literal uses unkeyed fields" # govet
2018-10-17 10:17:58 +00:00
- "G304: Potential file inclusion via variable" # gosec
- "G104: Errors unhandled." #gosec