Skip to content

Commit

Permalink
Removed linter : (gci)
Browse files Browse the repository at this point in the history
Signed-off-by: anishbista60 <[email protected]>
  • Loading branch information
anishbista60 committed Aug 21, 2024
1 parent b673f53 commit 532f546
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 13 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ issues:
- lll
- dupl
- nestif
- gci
- stylecheck

- text: "`ctx` is unused" # Context might not be in use in places, but for consistency, we pass it.
Expand Down
4 changes: 2 additions & 2 deletions pkg/errorchecker/errorchecker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package errorchecker
import (
"testing"

. "gopkg.in/check.v1"

"github.com/kanisterio/errkit"
"github.com/pkg/errors"

. "gopkg.in/check.v1"
)

// Hook up gocheck into the "go test" runner.
Expand Down
4 changes: 2 additions & 2 deletions pkg/field/field_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

. "gopkg.in/check.v1"

"github.com/kanisterio/kanister/pkg/field"

. "gopkg.in/check.v1"
)

type FieldSuite struct{}
Expand Down
3 changes: 2 additions & 1 deletion pkg/filter/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ package filter
import (
"testing"

. "gopkg.in/check.v1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

. "gopkg.in/check.v1"
)

// Hook up gocheck into the "go test" runner.
Expand Down
3 changes: 2 additions & 1 deletion pkg/filter/unstructured_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
package filter

import (
. "gopkg.in/check.v1"
"k8s.io/apimachinery/pkg/runtime/schema"

. "gopkg.in/check.v1"
)

type UnstructuredSuite struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/kopia/errors/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

"github.com/kanisterio/errkit"
"github.com/pkg/errors"

. "gopkg.in/check.v1"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/ksprig/fipsonly_sprig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"testing"
"text/template"

. "gopkg.in/check.v1"

"github.com/kanisterio/kanister/pkg/ksprig"

. "gopkg.in/check.v1"
)

type FipsOnlySprigSuite struct{}
Expand Down
1 change: 1 addition & 0 deletions pkg/poll/poll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"time"

"github.com/jpillora/backoff"

. "gopkg.in/check.v1"
)

Expand Down
4 changes: 3 additions & 1 deletion pkg/secrets/repositoryserver/aws_secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ package repositoryserver

import (
"github.com/pkg/errors"
. "gopkg.in/check.v1"

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

secerrors "github.com/kanisterio/kanister/pkg/secrets/errors"

. "gopkg.in/check.v1"
)

type AWSSecretCredsSuite struct{}
Expand Down
4 changes: 3 additions & 1 deletion pkg/secrets/repositoryserver/azure_secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ package repositoryserver

import (
"github.com/pkg/errors"
. "gopkg.in/check.v1"

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

secerrors "github.com/kanisterio/kanister/pkg/secrets/errors"

. "gopkg.in/check.v1"
)

type AzureSecretCredsSuite struct{}
Expand Down
4 changes: 3 additions & 1 deletion pkg/secrets/repositoryserver/gcp_secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ package repositoryserver

import (
"github.com/pkg/errors"
. "gopkg.in/check.v1"

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

secerrors "github.com/kanisterio/kanister/pkg/secrets/errors"

. "gopkg.in/check.v1"
)

type GCPSecretCredsSuite struct{}
Expand Down
4 changes: 3 additions & 1 deletion pkg/secrets/repositoryserver/s3compliant_secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ package repositoryserver

import (
"github.com/pkg/errors"
. "gopkg.in/check.v1"

corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

secerrors "github.com/kanisterio/kanister/pkg/secrets/errors"

. "gopkg.in/check.v1"
)

type S3CompliantSecretTestSuite struct{}
Expand Down

0 comments on commit 532f546

Please sign in to comment.