refactor: move lint args to configuration file
This commit is contained in:
parent
7b09ee073d
commit
2b7306d62d
|
@ -1,6 +1,6 @@
|
|||
run:
|
||||
concurrency: 4
|
||||
deadline: 1m
|
||||
timeout: 5m
|
||||
issues-exit-code: 1
|
||||
modules-download-mode: vendor
|
||||
tests: true
|
||||
|
@ -53,7 +53,9 @@ linters:
|
|||
- megacheck
|
||||
- misspell
|
||||
- structcheck
|
||||
# - typecheck
|
||||
# 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
|
||||
- unconvert
|
||||
- varcheck
|
||||
fast: false
|
||||
|
@ -64,6 +66,7 @@ issues:
|
|||
- "G304: Potential file inclusion via variable" # gosec
|
||||
- "G104: Errors unhandled." #gosec
|
||||
- "lib._Ctype_char, which can be annoying to use" # golint
|
||||
- "SA1019" # staticcheck
|
||||
exclude-rules:
|
||||
- path: eth-node/keystore/passphrase\.go
|
||||
text: "make it a constant"
|
||||
|
|
Loading…
Reference in New Issue