2018-06-12 16:34:24 +00:00
|
|
|
run:
|
|
|
|
concurrency: 4
|
2024-04-09 08:09:00 +00:00
|
|
|
timeout: 5m
|
2018-06-12 16:34:24 +00:00
|
|
|
issues-exit-code: 1
|
2020-01-02 09:10:19 +00:00
|
|
|
modules-download-mode: vendor
|
2018-06-12 16:34:24 +00:00
|
|
|
tests: true
|
|
|
|
skip-dirs:
|
|
|
|
- static
|
2020-01-02 09:10:19 +00:00
|
|
|
- vendor
|
2018-06-12 16:34:24 +00:00
|
|
|
skip-files:
|
2019-06-14 10:16:30 +00:00
|
|
|
- bindata.go
|
2018-06-12 16:34:24 +00:00
|
|
|
- .*_mock.go
|
2019-10-04 15:21:24 +00:00
|
|
|
- contracts/
|
2020-02-10 11:22:37 +00:00
|
|
|
- eth-node/crypto/ecies/ # copied
|
|
|
|
- eth-node/keystore/ # copied
|
2018-06-12 16:34:24 +00:00
|
|
|
|
|
|
|
output:
|
|
|
|
format: colored-line-number
|
|
|
|
print-issued-lines: true
|
|
|
|
print-linter-name: true
|
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
errcheck:
|
|
|
|
check-type-assertions: false
|
|
|
|
check-blank: false
|
|
|
|
govet:
|
|
|
|
check-shadowing: false
|
|
|
|
golint:
|
|
|
|
min-confidence: 0.8
|
|
|
|
gofmt:
|
|
|
|
simplify: true
|
2020-01-02 09:10:19 +00:00
|
|
|
goimports:
|
2023-10-12 19:21:49 +00:00
|
|
|
local-prefixes: github.com/ethereum/go-ethereum,github.com/status-im/status-go,github.com/waku-org/go-waku
|
2018-06-12 16:34:24 +00:00
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
|
|
|
dupl:
|
|
|
|
threshold: 50
|
|
|
|
goconst:
|
|
|
|
min-len: 3
|
|
|
|
min-occurrences: 2
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
|
|
|
- deadcode
|
|
|
|
- errcheck
|
2018-10-17 10:17:58 +00:00
|
|
|
- gosec
|
2018-06-12 16:34:24 +00:00
|
|
|
- goconst
|
2020-01-02 09:10:19 +00:00
|
|
|
- goimports
|
2018-06-12 16:34:24 +00:00
|
|
|
- golint
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- megacheck
|
2018-06-29 12:20:47 +00:00
|
|
|
- misspell
|
2018-06-12 16:34:24 +00:00
|
|
|
- structcheck
|
2024-04-09 08:09:00 +00:00
|
|
|
# You can't disable typecheck, see:
|
|
|
|
# https://github.com/golangci/golangci-lint/blob/master/docs/src/docs/welcome/faq.mdx#why-do-you-have-typecheck-errors
|
|
|
|
- typecheck
|
2018-06-12 16:34:24 +00:00
|
|
|
- unconvert
|
|
|
|
- varcheck
|
|
|
|
fast: false
|
|
|
|
|
2018-06-29 12:20:47 +00:00
|
|
|
issues:
|
|
|
|
exclude:
|
|
|
|
- "composite literal uses unkeyed fields" # govet
|
2018-10-17 10:17:58 +00:00
|
|
|
- "G304: Potential file inclusion via variable" # gosec
|
|
|
|
- "G104: Errors unhandled." #gosec
|
2019-11-15 07:33:07 +00:00
|
|
|
- "lib._Ctype_char, which can be annoying to use" # golint
|
2024-04-09 08:09:00 +00:00
|
|
|
- "SA1019" # staticcheck
|
2020-02-10 11:22:37 +00:00
|
|
|
exclude-rules:
|
|
|
|
- path: eth-node/keystore/passphrase\.go
|
|
|
|
text: "make it a constant"
|
|
|
|
linters:
|
|
|
|
- goconst
|
|
|
|
- path: protocol/message_handler\.go
|
|
|
|
text: "make it a constant"
|
|
|
|
linters:
|
|
|
|
- goconst
|
|
|
|
- path: protocol/.*_test\.go
|
|
|
|
text: "make it a constant"
|
|
|
|
linters:
|
|
|
|
- goconst
|