Skip to content

Commit

Permalink
ci: use new depguard config
Browse files Browse the repository at this point in the history
New version of golangci-lint pulled in a new version of depguard that changed the API, see golangci/golangci-lint#3877
  • Loading branch information
dkoshkin committed Jun 30, 2023
1 parent d709eef commit d78386b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ issues:

linters-settings:
depguard:
list-type: blacklist
packages:
- k8s.io/kubernetes
packages-with-error-message:
- k8s.io/kubernetes: >-
Avoid k8s.io/kubernetes if possible to reduce transitive dependencies
rules:
main:
deny:
- pkg: "k8s.io/kubernetes"
desc: "Avoid if possible to reduce transitive dependencies"
dupl:
threshold: 100
exhaustive:
Expand Down

0 comments on commit d78386b

Please sign in to comment.