From 56b7b09cf794ced7af89cb982411773fdb348046 Mon Sep 17 00:00:00 2001 From: David Nix Date: Fri, 23 Jun 2023 10:38:38 -0600 Subject: [PATCH] fix(cicd): Use new golangci-lint depguard schema (#313) --- .golangci.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 59e50f99..7726ae20 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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: