Skip to content

Commit

Permalink
chore: add depguard config for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
rainest committed Jun 5, 2023
1 parent 9bc15b0 commit 3aa1a57
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 @@ -69,3 +69,11 @@ linters-settings:
- gopkg.in/yaml.v3:
recommendations:
- sigs.k8s.io/yaml
depguard:
rules:
Main:
deny:
- pkg: "github.com/pkg/errors"
desc: Should be replaced by standard lib errors package
- pkg: "golang.org/x/net/context"
desc: use regular context instead

0 comments on commit 3aa1a57

Please sign in to comment.