2021-11-14 09:57:31 +00:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
|
|
|
linters:
|
|
|
|
enable:
|
2021-12-20 22:30:08 +00:00
|
|
|
- asciicheck
|
|
|
|
- depguard
|
2021-11-22 06:43:38 +00:00
|
|
|
- errorlint
|
2021-11-26 09:24:21 +00:00
|
|
|
- gci
|
2021-12-20 22:30:08 +00:00
|
|
|
- gochecknoinits
|
2021-11-14 09:57:31 +00:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- gosec
|
2021-12-20 22:30:08 +00:00
|
|
|
- megacheck
|
2021-11-25 09:24:51 +00:00
|
|
|
- misspell
|
2021-12-20 22:30:08 +00:00
|
|
|
- nakedret
|
|
|
|
- nolintlint
|
|
|
|
- predeclared
|
|
|
|
- revive
|
|
|
|
- unconvert
|
|
|
|
- unparam
|
2022-01-21 08:50:53 +00:00
|
|
|
linters-settings:
|
|
|
|
depguard:
|
2024-01-11 02:17:34 +00:00
|
|
|
rules:
|
|
|
|
prevent_unmaintained_packages:
|
|
|
|
list-mode: lax
|
|
|
|
files:
|
|
|
|
- $all
|
|
|
|
- "!$test"
|
|
|
|
deny:
|
|
|
|
- pkg: io/ioutil
|
|
|
|
desc: "replaced by io and os packages since Go 1.16: https://tip.golang.org/doc/go1.16#ioutil"
|
2021-11-14 09:57:31 +00:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- linters:
|
|
|
|
- gosec
|
|
|
|
text: "Implicit memory aliasing in for loop."
|
|
|
|
path: _test\.go
|
2021-12-20 22:30:08 +00:00
|
|
|
- linters:
|
|
|
|
- revive
|
|
|
|
text: "unexported-return"
|
|
|
|
- linters:
|
|
|
|
- revive
|
|
|
|
text: "var-naming"
|