Skip to content

Commit

Permalink
Blacklist ioutil pkg in golangci-lint
Browse files Browse the repository at this point in the history
This is to prevent anyone from accidentally importing the pkg

Signed-off-by: Abhinav Nair <[email protected]>
  • Loading branch information
abhinavnair committed Jun 28, 2022
1 parent 11f2f2d commit a783cc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ linters:
disable-all: true
enable:
- deadcode
- depguard
- errcheck
- gocyclo
- gofmt
Expand All @@ -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:
Expand Down

0 comments on commit a783cc4

Please sign in to comment.