mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
58 lines
952 B
YAML
58 lines
952 B
YAML
run:
|
|
deadline: 10m
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- gofmt
|
|
- deadcode
|
|
- errcheck
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- staticcheck
|
|
- structcheck
|
|
- unused
|
|
- varcheck
|
|
- gocritic
|
|
|
|
linters-settings:
|
|
gocritic:
|
|
enabled-checks:
|
|
- ruleguard
|
|
settings:
|
|
ruleguard:
|
|
rules: "rules.go"
|
|
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
|