Skip to content

Commit

Permalink
enable golangci lint:goimports (#1205)
Browse files Browse the repository at this point in the history
Signed-off-by: silenceper <[email protected]>
  • Loading branch information
silenceper authored Oct 1, 2020
1 parent bf9e037 commit 7a6941d
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ linters:
- rowserrcheck
- gofmt
- golint
- goimports
#- interfacer
#- goimports
#- ineffassign
#- misspell
#- scopelint
Expand Down
1 change: 1 addition & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

//"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down
1 change: 1 addition & 0 deletions pkg/scalers/azure/azure_blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package azure

import (
"context"

"github.com/Azure/azure-storage-blob-go/azblob"
)

Expand Down
5 changes: 3 additions & 2 deletions pkg/scalers/azure/azure_storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package azure
import (
"errors"
"fmt"
"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/Azure/azure-storage-queue-go/azqueue"
"net/url"
"strings"

"github.com/Azure/azure-storage-blob-go/azblob"
"github.com/Azure/azure-storage-queue-go/azqueue"
)

/* ParseAzureStorageConnectionString parses a storage account connection string into (endpointProtocol, accountName, key, endpointSuffix)
Expand Down
3 changes: 2 additions & 1 deletion pkg/scalers/azure_blob_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package scalers
import (
"context"
"fmt"
"github.com/kedacore/keda/pkg/scalers/azure"
"strconv"

"github.com/kedacore/keda/pkg/scalers/azure"

v2beta2 "k8s.io/api/autoscaling/v2beta2"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
3 changes: 2 additions & 1 deletion pkg/scalers/azure_queue_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package scalers
import (
"context"
"fmt"
"github.com/kedacore/keda/pkg/scalers/azure"
"strconv"

"github.com/kedacore/keda/pkg/scalers/azure"

v2beta2 "k8s.io/api/autoscaling/v2beta2"
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
3 changes: 2 additions & 1 deletion pkg/scalers/external_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package scalers
import (
"context"
"fmt"
"github.com/mitchellh/hashstructure"
"strings"
"sync"
"time"

"github.com/mitchellh/hashstructure"

pb "github.com/kedacore/keda/pkg/scalers/externalscaler"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
Expand Down
9 changes: 5 additions & 4 deletions pkg/scalers/external_scaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package scalers
import (
"context"
"fmt"
pb "github.com/kedacore/keda/pkg/scalers/externalscaler"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"net"
"sync/atomic"
"testing"
"time"

pb "github.com/kedacore/keda/pkg/scalers/externalscaler"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)

var testExternalScalerResolvedEnv map[string]string
Expand Down
3 changes: 2 additions & 1 deletion pkg/scalers/redis_scaler_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package scalers

import (
"github.com/go-redis/redis"
"testing"

"github.com/go-redis/redis"
)

var testRedisResolvedEnv = map[string]string{
Expand Down

0 comments on commit 7a6941d

Please sign in to comment.