mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
hack: use golangci-lint to find io/ioutil
The package has been deprecated since Go 1.16. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
parent
64441553e7
commit
9a0b1f4f6b
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
linters:
|
||||
enable:
|
||||
- deadcode
|
||||
- depguard
|
||||
- goimports
|
||||
- golint
|
||||
- gosec
|
||||
|
@ -31,7 +32,13 @@ linters:
|
|||
linters-settings:
|
||||
govet:
|
||||
check-shadowing: false
|
||||
|
||||
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
|
||||
issues:
|
||||
# The default exclusion rules are a bit too permissive, so copying the relevant ones below
|
||||
exclude-use-default: false
|
||||
|
|
Loading…
Reference in a new issue