status-go/.golangci.yml

65 lines
1.1 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
2019-11-15 07:33:07 +00:00
# - 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
2019-11-15 07:33:07 +00:00
- "lib._Ctype_char, which can be annoying to use" # golint