erigon-pulse/.golangci.yml
2021-04-13 21:48:20 +07:00

50 lines
818 B
YAML

run:
deadline: 10m
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- unused
- varcheck
linters-settings:
govet:
disable:
- deepequalerrors
- fieldalignment
- shadow
- unsafeptr
goconst:
min-len: 2
min-occurrences: 2
gofmt:
auto-fix: false
issues:
exclude-rules:
- linters:
- golint
text: "should be"
- linters:
- errcheck
text: "not checked"
- linters:
- staticcheck
text: "SA(1019|1029|5011)"
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gosec
- unused
- deadcode
- path: metrics/sample\.go
linters:
- gosec