Skip to content

Commit 0478c21

Browse files
author
Michael Henriksen
committed
chore(ci): update depguard config to new format
1 parent a408f00 commit 0478c21

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.golangci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ issues:
1414

1515
linters-settings:
1616
depguard:
17+
rules:
18+
main:
19+
files:
20+
- $all
21+
- "!$test"
22+
deny:
23+
- pkg: github.com/go-ozzo/ozzo-validation
24+
desc: "use maintained github.com/invopop/validation fork instead"
25+
- pkg: github.com/stretchr/testify
26+
desc: "testify must only be used in test files"
27+
- pkg: github.com/brianvoe/gofakeit
28+
desc: "gofakeit must only be used in test files"
1729
list-type: denylist
1830
packages-with-error-message:
1931
- github.com/stretchr/testify/assert: "use github.com/stretchr/testify/require for faster tests"

0 commit comments

Comments
 (0)