From f65ec5401930062df7f0595316e7e80a901d36ce Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 31 Jan 2024 13:07:19 +0100 Subject: [PATCH] lint: Allow gomega/ginkgo dot imports This silences some warnings from revive/golangci-lint which we want to ignore for these specific go modules. Signed-off-by: Christophe Fergeau --- test/integration/podman_test.go | 4 ++-- test/integration/proxy_test.go | 4 ++-- test/integration/resize_test.go | 4 ++-- test/integration/testsuite_test.go | 4 ++-- test/integration/utilities_test.go | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/integration/podman_test.go b/test/integration/podman_test.go index 206914eec5..e4627adc57 100644 --- a/test/integration/podman_test.go +++ b/test/integration/podman_test.go @@ -7,8 +7,8 @@ import ( "github.com/crc-org/crc/v2/test/extended/crc/cmd" "github.com/crc-org/crc/v2/test/extended/util" - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" + . "github.com/onsi/ginkgo/v2" //revive:disable-line:dot-imports + . "github.com/onsi/gomega" //revive:disable-line:dot-imports ) var _ = Describe("podman preset", Serial, Ordered, Label("podman-preset"), func() { diff --git a/test/integration/proxy_test.go b/test/integration/proxy_test.go index 9677d26eec..349a683cda 100644 --- a/test/integration/proxy_test.go +++ b/test/integration/proxy_test.go @@ -7,8 +7,8 @@ import ( crcCmd "github.com/crc-org/crc/v2/test/extended/crc/cmd" "github.com/crc-org/crc/v2/test/extended/util" - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" + . "github.com/onsi/ginkgo/v2" //revive:disable-line:dot-imports + . "github.com/onsi/gomega" //revive:disable-line:dot-imports ) var _ = Describe("", Serial, Ordered, Label("openshift-preset", "goproxy"), func() { diff --git a/test/integration/resize_test.go b/test/integration/resize_test.go index 9e2819c6cd..e53b0fc897 100644 --- a/test/integration/resize_test.go +++ b/test/integration/resize_test.go @@ -5,8 +5,8 @@ import ( "runtime" "github.com/crc-org/crc/v2/test/extended/util" - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" + . "github.com/onsi/ginkgo/v2" //revive:disable-line:dot-imports + . "github.com/onsi/gomega" //revive:disable-line:dot-imports ) var _ = Describe("vary VM parameters: memory cpus, disk", Serial, Ordered, Label("openshift-preset", "vm-resize"), func() { diff --git a/test/integration/testsuite_test.go b/test/integration/testsuite_test.go index c95ed59845..8ef38c141c 100644 --- a/test/integration/testsuite_test.go +++ b/test/integration/testsuite_test.go @@ -8,8 +8,8 @@ import ( "testing" "github.com/crc-org/crc/v2/test/extended/util" - . "github.com/onsi/ginkgo/v2" - . "github.com/onsi/gomega" + . "github.com/onsi/ginkgo/v2" //revive:disable-line:dot-imports + . "github.com/onsi/gomega" //revive:disable-line:dot-imports gomegaformat "github.com/onsi/gomega/format" "github.com/sirupsen/logrus" ) diff --git a/test/integration/utilities_test.go b/test/integration/utilities_test.go index 8541bffe91..7f486e8ee9 100644 --- a/test/integration/utilities_test.go +++ b/test/integration/utilities_test.go @@ -9,7 +9,7 @@ import ( "time" "github.com/crc-org/crc/v2/test/extended/crc/cmd" - . "github.com/onsi/gomega" + . "github.com/onsi/gomega" //revive:disable-line:dot-imports ) // CRCBuilder is used to build, customize and execute a CRC command.