2023-01-18 02:20:42 +00:00
|
|
|
linters:
|
2023-05-05 00:19:47 +00:00
|
|
|
# Disable all linters, the defaults don't pass on our code yet
|
2023-01-18 02:20:42 +00:00
|
|
|
disable-all: true
|
2023-05-05 00:19:47 +00:00
|
|
|
|
|
|
|
# Enable these for now
|
2023-01-18 02:20:42 +00:00
|
|
|
enable:
|
|
|
|
- depguard
|
2023-05-05 00:19:47 +00:00
|
|
|
- govet
|
|
|
|
- errorlint
|
|
|
|
- exportloopref
|
2023-01-18 02:20:42 +00:00
|
|
|
linters-settings:
|
|
|
|
depguard:
|
|
|
|
list-type: denylist
|
|
|
|
include-go-root: true
|
|
|
|
packages:
|
|
|
|
- github.com/sirupsen/logrus
|
|
|
|
- golang.org/x/exp
|
|
|
|
packages-with-error-message:
|
|
|
|
- github.com/sirupsen/logrus: 'logging is allowed only by github.com/rs/zerolog'
|
|
|
|
ignore-file-rules:
|
2023-05-05 00:19:47 +00:00
|
|
|
- '**/*_test.go'
|
2023-06-22 21:28:07 +00:00
|
|
|
- '**/base.go'
|
|
|
|
- '**/base_tx.go'
|
2023-05-05 00:19:47 +00:00
|
|
|
|
|
|
|
# errorlint is causing a typecheck error for some reason. The go compiler will report these
|
|
|
|
# anyway, so ignore them from the linter
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: ./
|
|
|
|
linters:
|
|
|
|
- typecheck
|