Skip to content

Commit

Permalink
chore: enable depguard for io/ioutil package
Browse files Browse the repository at this point in the history
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
  • Loading branch information
Juneezee committed Sep 17, 2021
1 parent f0186ff commit 5510220
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ run:
timeout: 2m

linters-settings:
depguard:
list-type: blacklist
include-go-root: true
packages:
- io/ioutil
packages-with-error-message:
- io/ioutil: "The 'io/ioutil' package is deprecated. Use corresponding 'os' or 'io' functions instead."
gci:
local-prefixes: github.com/dexidp/dex
goimports:
Expand All @@ -13,6 +20,7 @@ linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- exhaustive
- exportloopref
Expand Down Expand Up @@ -64,7 +72,6 @@ linters:
# - scopelint

# unused
# - depguard
# - goheader
# - gomodguard

Expand Down

0 comments on commit 5510220

Please sign in to comment.