mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
53 lines
900 B
YAML
53 lines
900 B
YAML
run:
|
|
tests: false
|
|
# # timeout for analysis, e.g. 30s, 5m, default is 1m
|
|
# timeout: 5m
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
# - errcheck
|
|
- goconst
|
|
- gocritic
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- interfacer
|
|
- maligned
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- scopelint
|
|
- staticcheck
|
|
- structcheck
|
|
- stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unused
|
|
- misspell
|
|
- wsl
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- text: "Use of weak random number generator"
|
|
linters:
|
|
- gosec
|
|
- text: "comment on exported var"
|
|
linters:
|
|
- golint
|
|
|
|
linters-settings:
|
|
dogsled:
|
|
max-blank-identifiers: 3
|
|
maligned:
|
|
# print struct with more effective memory layout or not, false by default
|
|
suggest-new: true
|