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
|
2022-03-10 08:47:41 +08:00
|
|
|
- depguard
|
2021-02-17 15:42:08 +08:00
|
|
|
- goimports
|
|
|
|
- ineffassign
|
|
|
|
- misspell
|
|
|
|
- unused
|
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
|
2023-02-01 18:11:56 +08:00
|
|
|
- gosec
|
2023-02-01 18:23:47 +08:00
|
|
|
- forbidigo
|
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
|
2023-02-01 18:23:47 +08:00
|
|
|
forbidigo:
|
|
|
|
forbid:
|
|
|
|
- '^fmt\.Errorf(# use errors\.Errorf instead)?$'
|
2023-02-01 18:11:56 +08:00
|
|
|
gosec:
|
|
|
|
excludes:
|
|
|
|
- G204 # Audit use of command execution
|
|
|
|
- G402 # TLS MinVersion too low
|
|
|
|
config:
|
|
|
|
G306: "0644"
|
2022-03-10 08:47:41 +08:00
|
|
|
|
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"
|