mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
3efcdc420f
https://github.com/golangci/golangci-lint/issues/2649 WARN [linters context] bodyclose is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. WARN [linters context] gosimple is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. WARN [linters context] staticcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. WARN [linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649. WARN [linters context] unused is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
129 lines
3.0 KiB
YAML
129 lines
3.0 KiB
YAML
run:
|
|
deadline: 10m
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- gofmt
|
|
- deadcode
|
|
- errcheck
|
|
# - gosimple # 1.18
|
|
- govet
|
|
- ineffassign
|
|
# - staticcheck # 1.18
|
|
# - structcheck # 1.18
|
|
# - unused # 1.18
|
|
- varcheck
|
|
# - gocritic
|
|
# - bodyclose # 1.18
|
|
# - gosec
|
|
# - forcetypeassert
|
|
|
|
linters-settings:
|
|
gocritic:
|
|
# Which checks should be enabled; can't be combined with 'disabled-checks';
|
|
# See https://go-critic.github.io/overview#checks-overview
|
|
# To check which checks are enabled run `GL_DEBUG=gocritic ./build/bin/golangci-lint run`
|
|
# By default list of stable checks is used.
|
|
enabled-checks:
|
|
- ruleguard
|
|
- truncateCmp
|
|
# - defaultCaseOrder
|
|
|
|
# Which checks should be disabled; can't be combined with 'enabled-checks'; default is empty
|
|
disabled-checks:
|
|
- regexpMust
|
|
- appendAssign
|
|
# - hugeParam
|
|
- rangeValCopy
|
|
- exitAfterDefer
|
|
- elseif
|
|
- dupBranchBody
|
|
- assignOp
|
|
- singleCaseSwitch
|
|
- unlambda
|
|
- captLocal
|
|
- commentFormatting
|
|
- ifElseChain
|
|
- importShadow
|
|
- paramTypeCombine
|
|
- builtinShadow
|
|
- typeUnparen
|
|
|
|
# Enable multiple checks by tags, run `GL_DEBUG=gocritic golangci-lint run` to see all tags and checks.
|
|
# Empty list by default. See https://github.com/go-critic/go-critic#usage -> section "Tags".
|
|
enabled-tags:
|
|
- performance
|
|
- diagnostic
|
|
- opinionated
|
|
disabled-tags:
|
|
- experimental
|
|
settings:
|
|
ruleguard:
|
|
rules: "rules.go"
|
|
hugeParam:
|
|
# size in bytes that makes the warning trigger (default 80)
|
|
sizeThreshold: 1000
|
|
rangeExprCopy:
|
|
# size in bytes that makes the warning trigger (default 512)
|
|
sizeThreshold: 512
|
|
# whether to check test functions (default true)
|
|
skipTestFuncs: true
|
|
truncateCmp:
|
|
# whether to skip int/uint/uintptr types (default true)
|
|
skipArchDependent: true
|
|
underef:
|
|
# whether to skip (*x).method() calls where x is a pointer receiver (default true)
|
|
skipRecvDeref: true
|
|
|
|
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
|
|
- gocritic
|
|
- path: hack\.go
|
|
linters:
|
|
- gosec
|
|
- unused
|
|
- deadcode
|
|
- gocritic
|
|
- path: cmd/devp2p
|
|
linters:
|
|
- gosec
|
|
- unused
|
|
- deadcode
|
|
- gocritic
|
|
- path: metrics/sample\.go
|
|
linters:
|
|
- gosec
|
|
- gocritic
|
|
- path: p2p/simulations
|
|
linters:
|
|
- gosec
|
|
- gocritic
|