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 6, 2023
1 parent 0380aab commit 57cc328
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ 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:
files:
- $all
- "!$test"
deny:
- pkg: "k8s.io/kubernetes"
desc: "Avoid if possible to reduce transitive dependencies"
dupl:
threshold: 100
exhaustive:
Expand Down

0 comments on commit 57cc328

Please sign in to comment.