Skip to content

Commit

Permalink
Ignore dot-imports error message only for go test files
Browse files Browse the repository at this point in the history
  • Loading branch information
s1061123 committed Dec 7, 2023
1 parent 8859ac6 commit 92f8e5c
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/checkpoint/checkpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package checkpoint

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"
Expand Down
2 changes: 2 additions & 0 deletions pkg/cmdutils/cmdutils_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// Package cmdutils is the package that contains utilities for multus command
package cmdutils

// 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/cmdutils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// Package cmdutils is the package that contains utilities for multus command
package cmdutils

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"
Expand Down
2 changes: 2 additions & 0 deletions pkg/k8sclient/k8sclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package k8sclient

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"
Expand Down
2 changes: 2 additions & 0 deletions pkg/kubeletclient/kubeletclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package kubeletclient

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"
Expand Down
2 changes: 2 additions & 0 deletions pkg/logging/logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package logging

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

package multus

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

package multus

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

package multus

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

package multus

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"bytes"
"context"
Expand Down
2 changes: 2 additions & 0 deletions pkg/netutils/netutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package netutils

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

package server

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

package server

// 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/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package server

// 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/thick_cni_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package server

// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"
Expand Down
2 changes: 2 additions & 0 deletions pkg/types/conf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

package types

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

0 comments on commit 92f8e5c

Please sign in to comment.