Blacklist ioutil pkg in golangci-lint

This is to prevent anyone from accidentally importing the pkg

Signed-off-by: Abhinav Nair <11939846+abhinavnair@users.noreply.github.com>
This commit is contained in:
Abhinav Nair 2022-06-28 09:18:40 +08:00
parent 11f2f2dbc4
commit a783cc4574
No known key found for this signature in database
GPG Key ID: 1724728BA191F70C
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@ linters:
disable-all: true
enable:
- deadcode
- depguard
- errcheck
- gocyclo
- gofmt
@ -26,6 +27,13 @@ linters:
- unused
- varcheck
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
gocyclo:
min-complexity: 16
lll: