Skip to content

Commit 31e29b6

Browse files
committed
style: fix indentation in tests
correct indentation for imports in test files This commit addresses the inconsistent indentation in several test files. The imports are now properly aligned using tabs instead of spaces to maintain consistency across the codebase. This change does not affect functionality but improves code readability.
1 parent 6c0cd1e commit 31e29b6

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

pkg/plugins/golang/deploy-image/v1alpha1/scaffolds/internal/templates/controllers/controller-test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ import (
6969
"os"
7070
"time"
7171
72-
//nolint:golint
73-
. "github.com/onsi/ginkgo/v2"
74-
. "github.com/onsi/gomega"
72+
. "github.com/onsi/ginkgo/v2"
73+
. "github.com/onsi/gomega"
74+
7575
appsv1 "k8s.io/api/apps/v1"
7676
corev1 "k8s.io/api/core/v1"
7777
"k8s.io/apimachinery/pkg/api/errors"

pkg/plugins/golang/v4/scaffolds/internal/templates/controllers/controller_suitetest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ import (
138138
"path/filepath"
139139
"testing"
140140
141-
. "github.com/onsi/ginkgo/v2"
142-
. "github.com/onsi/gomega"
141+
. "github.com/onsi/ginkgo/v2"
142+
. "github.com/onsi/gomega"
143143
144144
"k8s.io/client-go/kubernetes/scheme"
145145
"k8s.io/client-go/rest"

pkg/plugins/golang/v4/scaffolds/internal/templates/test/e2e/suite.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ import (
5050
"os"
5151
"os/exec"
5252
53-
. "github.com/onsi/ginkgo/v2"
54-
. "github.com/onsi/gomega"
53+
. "github.com/onsi/ginkgo/v2"
54+
. "github.com/onsi/gomega"
5555
5656
"{{ .Repo }}/test/utils"
5757
)

pkg/plugins/golang/v4/scaffolds/internal/templates/webhooks/webhook_suitetest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ import (
190190
"testing"
191191
"time"
192192
193-
. "github.com/onsi/ginkgo/v2"
194-
. "github.com/onsi/gomega"
193+
. "github.com/onsi/ginkgo/v2"
194+
. "github.com/onsi/gomega"
195195
196196
"k8s.io/client-go/kubernetes/scheme"
197197
"k8s.io/client-go/rest"

testdata/project-v4-multigroup/internal/controller/example.com/busybox_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"os"
2222
"time"
2323

24-
//nolint:golint
2524
. "github.com/onsi/ginkgo/v2"
2625
. "github.com/onsi/gomega"
26+
2727
appsv1 "k8s.io/api/apps/v1"
2828
corev1 "k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/api/errors"

testdata/project-v4-multigroup/internal/controller/example.com/memcached_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"os"
2222
"time"
2323

24-
//nolint:golint
2524
. "github.com/onsi/ginkgo/v2"
2625
. "github.com/onsi/gomega"
26+
2727
appsv1 "k8s.io/api/apps/v1"
2828
corev1 "k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/api/errors"

testdata/project-v4-with-plugins/internal/controller/busybox_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"os"
2222
"time"
2323

24-
//nolint:golint
2524
. "github.com/onsi/ginkgo/v2"
2625
. "github.com/onsi/gomega"
26+
2727
appsv1 "k8s.io/api/apps/v1"
2828
corev1 "k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/api/errors"

testdata/project-v4-with-plugins/internal/controller/memcached_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"os"
2222
"time"
2323

24-
//nolint:golint
2524
. "github.com/onsi/ginkgo/v2"
2625
. "github.com/onsi/gomega"
26+
2727
appsv1 "k8s.io/api/apps/v1"
2828
corev1 "k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/api/errors"

0 commit comments

Comments
 (0)