chore: enable depguard for io/ioutil package

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
Eng Zer Jun 2021-09-17 15:26:47 +08:00
parent f0186ff265
commit 551022046c
No known key found for this signature in database
GPG Key ID: DAEBBD2E34C111E6
1 changed files with 8 additions and 1 deletions

View File

@ -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:
@ -13,6 +20,7 @@ linters:
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- exhaustive
- exportloopref
@ -64,7 +72,6 @@ linters:
# - scopelint
# unused
# - depguard
# - goheader
# - gomodguard