mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 10:32:19 +00:00
60 lines
1.0 KiB
YAML
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
|