Skip to content

Commit

Permalink
disable revive's dot-imports in unit test files
Browse files Browse the repository at this point in the history
  • Loading branch information
s1061123 committed Jan 5, 2024
1 parent 197877d commit 6e4f62f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/thin_entrypoint/main_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package main

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"
"testing"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
. "github.com/onsi/ginkgo/v2" //nolint:golint
. "github.com/onsi/gomega" //nolint:golint
)

func TestThinEntrypoint(t *testing.T) {
Expand Down
2 changes: 2 additions & 0 deletions pkg/server/config/config_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package config

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 2 additions & 0 deletions pkg/server/config/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package config

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"encoding/json"
"fmt"
Expand Down
2 changes: 2 additions & 0 deletions pkg/server/config/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package config

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"encoding/json"
Expand Down

0 comments on commit 6e4f62f

Please sign in to comment.