Ignore dot-imports error message only for go test files

This commit is contained in:
Tomofumi Hayashi 2023-12-07 20:55:51 +09:00
parent e4404b2645
commit d97514f841
16 changed files with 32 additions and 0 deletions

View File

@ -15,6 +15,8 @@
package checkpoint
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"

View File

@ -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"

View File

@ -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"

View File

@ -15,6 +15,8 @@
package k8sclient
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"

View File

@ -15,6 +15,8 @@
package kubeletclient
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"

View File

@ -15,6 +15,8 @@
package logging
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"fmt"
"os"

View File

@ -14,6 +14,8 @@
package multus
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"

View File

@ -14,6 +14,8 @@
package multus
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"

View File

@ -14,6 +14,8 @@
package multus
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"

View File

@ -14,6 +14,8 @@
package multus
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"bytes"
"context"

View File

@ -15,6 +15,8 @@
package netutils
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"encoding/json"
"net"

View File

@ -14,6 +14,8 @@
package server
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"os"

View File

@ -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"

View File

@ -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"

View File

@ -14,6 +14,8 @@
package server
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"context"
"fmt"

View File

@ -15,6 +15,8 @@
package types
// disable dot-imports only for testing
//revive:disable:dot-imports
import (
"encoding/json"
"fmt"