mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-02 00:19:10 +00:00
Ignore dot-imports error message only for go test files
This commit is contained in:
parent
e4404b2645
commit
d97514f841
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
package checkpoint
|
package checkpoint
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
// Package cmdutils is the package that contains utilities for multus command
|
// Package cmdutils is the package that contains utilities for multus command
|
||||||
package cmdutils
|
package cmdutils
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
// Package cmdutils is the package that contains utilities for multus command
|
// Package cmdutils is the package that contains utilities for multus command
|
||||||
package cmdutils
|
package cmdutils
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
package k8sclient
|
package k8sclient
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
package kubeletclient
|
package kubeletclient
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
package logging
|
package logging
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package multus
|
package multus
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package multus
|
package multus
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package multus
|
package multus
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package multus
|
package multus
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
package netutils
|
package netutils
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net"
|
"net"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package server
|
package server
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"os"
|
"os"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package server
|
package server
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package server
|
package server
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
package server
|
package server
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
package types
|
package types
|
||||||
|
|
||||||
|
// disable dot-imports only for testing
|
||||||
|
//revive:disable:dot-imports
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
Loading…
Reference in New Issue
Block a user