erigon-pulse/.golangci/step1.yml
2021-03-20 16:35:13 +07:00

60 lines
1.0 KiB
YAML

run:
deadline: 10m
linters:
disable-all: true
enable:
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- goconst
- gofmt
- golint
- interfacer
- stylecheck
- goerr113
- unconvert
- scopelint
- nakedret
- prealloc
- gosec
- misspell
linters-settings:
govet:
check-shadowing: true
enable-all: true
goconst:
min-len: 2
min-occurrences: 2
gofmt:
auto-fix: false
issues:
exclude:
- composites
- G108 # gosec: Profiling endpoint is automatically exposed on /debug/pprof
exclude-rules:
- linters:
- golint
text: "should be"
- linters:
- goerr113
text: "do not define dynamic errors"
- linters:
- stylecheck
text: "(should be|should have name of the form)"
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gosec
- unused
- deadcode