Skip to content

Commit

Permalink
chore(ci): update depguard config to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henriksen committed Aug 29, 2023
1 parent a408f00 commit 0478c21
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ issues:

linters-settings:
depguard:
rules:
main:
files:
- $all
- "!$test"
deny:
- pkg: github.com/go-ozzo/ozzo-validation
desc: "use maintained github.com/invopop/validation fork instead"
- pkg: github.com/stretchr/testify
desc: "testify must only be used in test files"
- pkg: github.com/brianvoe/gofakeit
desc: "gofakeit must only be used in test files"
list-type: denylist
packages-with-error-message:
- github.com/stretchr/testify/assert: "use github.com/stretchr/testify/require for faster tests"
Expand Down

0 comments on commit 0478c21

Please sign in to comment.