Skip to content

Commit

Permalink
fix(cicd): Use new golangci-lint depguard schema (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidNix committed Jun 23, 2023
1 parent 1e048ee commit 56b7b09
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ run:

linters-settings:
depguard:
list-type: denylist
packages:
- github.com/stretchr/testify/assert
- github.com/onsi/gomega
- github.com/onsi/ginkgo/v2
- github.com/onsi/ginkgo
packages-with-error-message:
- github.com/stretchr/testify/assert: "Use github.com/stretchr/testify/require instead of assert"
- github.com/onsi/gomega: "Although Ginkgo is used in kubebuilder, use testify instead. Ginkgo is bloated providing little value."
- github.com/onsi/ginkgo/v2: "Although Ginkgo is used in kubebuilder, use testify instead. Ginkgo is bloated providing little value."
rules:
tests:
deny:
- pkg: github.com/stretchr/testify/assert
desc: "Use github.com/stretchr/testify/require instead of testify/assert"
- pkg: github.com/onsi/gomega
desc: "Although Ginkgo is used in kubebuilder, use testify instead. Ginkgo is bloated providing little value."
- pkg: github.com/onsi/ginkgo/v2
desc: "Although Ginkgo is used in kubebuilder, use testify instead. Ginkgo is bloated providing little value."
- pkg: github.com/onsi/ginkgo
desc: "Although Ginkgo is used in kubebuilder, use testify instead. Ginkgo is bloated providing little value."
govet:
check-shadowing: true
misspell:
Expand Down

0 comments on commit 56b7b09

Please sign in to comment.