Skip to content

Commit

Permalink
lint: Allow gomega/ginkgo dot imports
Browse files Browse the repository at this point in the history
This silences some warnings from revive/golangci-lint which we want
to ignore for these specific go modules.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
  • Loading branch information
cfergeau committed Jan 31, 2024
1 parent 6a0625f commit f65ec54
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/integration/podman_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/resize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/integration/testsuite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/utilities_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f65ec54

Please sign in to comment.