Skip to content

Commit de72632

Browse files
harsimranmaanbrandond
authored andcommittedAug 27, 2024
remove revive linter
1 parent 9d6c6a9 commit de72632

10 files changed

+18
-19
lines changed
 

‎.golangci.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"disable-all": true,
44
"enable": [
55
"govet",
6-
"revive",
76
"goimports",
87
"misspell",
98
"ineffassign",

‎e2e/suite/channel_resolve_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"net/http"
66
"net/http/httptest"
77

8-
. "github.com/onsi/ginkgo/v2" //nolint:revive
9-
. "github.com/onsi/gomega" //nolint:revive
8+
. "github.com/onsi/ginkgo/v2"
9+
. "github.com/onsi/gomega"
1010
"github.com/rancher/system-upgrade-controller/e2e/framework"
1111
upgradeapiv1 "github.com/rancher/system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1"
1212
upgradeplan "github.com/rancher/system-upgrade-controller/pkg/upgrade/plan"

‎e2e/suite/job_generate_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"io"
77
"time"
88

9-
. "github.com/onsi/ginkgo/v2" //nolint:revive
10-
. "github.com/onsi/gomega" //nolint:revive
9+
. "github.com/onsi/ginkgo/v2"
10+
. "github.com/onsi/gomega"
1111
batchv1 "k8s.io/api/batch/v1"
1212
v1 "k8s.io/api/core/v1"
1313
"k8s.io/utils/ptr"

‎e2e/suite/plan_create_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package suite_test
22

33
import (
4-
. "github.com/onsi/ginkgo/v2" //nolint:revive
5-
. "github.com/onsi/gomega" //nolint:revive
4+
. "github.com/onsi/ginkgo/v2"
5+
. "github.com/onsi/gomega"
66
"github.com/rancher/system-upgrade-controller/e2e/framework"
77
upgradeapiv1 "github.com/rancher/system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1"
88
)

‎e2e/suite/plan_resolve_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"path"
77
"time"
88

9-
. "github.com/onsi/ginkgo/v2" //nolint:revive
10-
. "github.com/onsi/gomega" //nolint:revive
9+
. "github.com/onsi/ginkgo/v2"
10+
. "github.com/onsi/gomega"
1111
"github.com/rancher/system-upgrade-controller/e2e/framework"
1212
upgradeapiv1 "github.com/rancher/system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1"
1313
)

‎e2e/suite/zz_suite_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"os"
66
"testing"
77

8-
. "github.com/onsi/ginkgo/v2" //nolint:revive
9-
. "github.com/onsi/gomega" //nolint:revive
8+
. "github.com/onsi/ginkgo/v2"
9+
. "github.com/onsi/gomega"
1010
"github.com/sirupsen/logrus"
1111
"k8s.io/kubernetes/test/e2e/framework"
1212
"k8s.io/kubernetes/test/e2e/framework/config"

‎pkg/upgrade/container/container_suite_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package container_test
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo/v2" //nolint:revive
7-
. "github.com/onsi/gomega" //nolint:revive
6+
. "github.com/onsi/ginkgo/v2"
7+
. "github.com/onsi/gomega"
88
)
99

1010
func TestContainer(t *testing.T) {

‎pkg/upgrade/container/container_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package container_test
22

33
import (
4-
. "github.com/onsi/ginkgo/v2" //nolint:revive
5-
. "github.com/onsi/gomega" //nolint:revive
4+
. "github.com/onsi/ginkgo/v2"
5+
. "github.com/onsi/gomega"
66
upgradeapiv1 "github.com/rancher/system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1"
77
"github.com/rancher/system-upgrade-controller/pkg/upgrade/container"
88
corev1 "k8s.io/api/core/v1"

‎pkg/upgrade/job/job_suite_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package job_test
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo/v2" //nolint:revive
7-
. "github.com/onsi/gomega" //nolint:revive
6+
. "github.com/onsi/ginkgo/v2"
7+
. "github.com/onsi/gomega"
88
upgradev1 "github.com/rancher/system-upgrade-controller/pkg/apis/upgrade.cattle.io/v1"
99
sucjob "github.com/rancher/system-upgrade-controller/pkg/upgrade/job"
1010
corev1 "k8s.io/api/core/v1"

‎pkg/upgrade/upgrade_suite_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package upgrade_test
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo/v2" //nolint:revive
7-
. "github.com/onsi/gomega" //nolint:revive
6+
. "github.com/onsi/ginkgo/v2"
7+
. "github.com/onsi/gomega"
88
)
99

1010
func TestUpgrade(t *testing.T) {

0 commit comments

Comments
 (0)
Please sign in to comment.