2021-02-17 15:42:08 +08:00
|
|
|
run:
|
|
|
|
timeout: 10m
|
|
|
|
skip-files:
|
|
|
|
- ".*\\.pb\\.go$"
|
|
|
|
|
|
|
|
modules-download-mode: vendor
|
|
|
|
|
|
|
|
build-tags:
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- gofmt
|
|
|
|
- govet
|
|
|
|
- deadcode
|
2022-03-10 08:47:41 +08:00
|
|
|
- depguard
|
2021-02-17 15:42:08 +08:00
|
|
|
- goimports
|
|
|
|
- ineffassign
|
|
|
|
- misspell
|
|
|
|
- unused
|
|
|
|
- varcheck
|
2022-05-23 23:54:46 +08:00
|
|
|
- revive
|
2021-02-17 15:42:08 +08:00
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
2022-10-19 22:11:23 +08:00
|
|
|
- nolintlint
|
2021-02-17 15:42:08 +08:00
|
|
|
disable-all: true
|
|
|
|
|
2022-03-10 08:47:41 +08:00
|
|
|
linters-settings:
|
|
|
|
depguard:
|
|
|
|
list-type: blacklist
|
|
|
|
include-go-root: true
|
|
|
|
packages:
|
|
|
|
# The io/ioutil package has been deprecated.
|
|
|
|
# https://go.dev/doc/go1.16#ioutil
|
|
|
|
- io/ioutil
|
|
|
|
|
2021-02-17 15:42:08 +08:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- linters:
|
2022-05-23 23:54:46 +08:00
|
|
|
- revive
|
2021-02-17 15:42:08 +08:00
|
|
|
text: "stutters"
|