Skip to content

Commit

Permalink
Enable goimports linter
Browse files Browse the repository at this point in the history
  • Loading branch information
bennerv committed May 7, 2024
1 parent bb7e6e3 commit 384e3be
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ linters:
disable-all: true
enable:
- errcheck
- goimports
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
linters-settings:
goimports:
local-prefixes: github.com/Azure/ARO-HCP
3 changes: 0 additions & 3 deletions api/redhatopenshift/HcpCluster/hcpCluster-models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,6 @@ model PlatformProfile {
/** The core outgoing configuration */
outboundType?: OutboundType = OutboundType.loadBalancer;

/** Specifies whether subnets are pre-attached with an NSG */
preconfiguredNsgs: boolean;

/** The id of the disk encryption set to be used for etcd.
* Configure this when `etcdEncryption` is set to true
* Is used the https://learn.microsoft.com/en-us/azure/storage/common/customer-managed-keys-overview
Expand Down
3 changes: 2 additions & 1 deletion frontend/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ import (
"strings"
"sync/atomic"

"github.com/prometheus/client_golang/prometheus/promhttp"

"github.com/Azure/ARO-HCP/internal/api"
"github.com/Azure/ARO-HCP/internal/api/arm"
"github.com/Azure/ARO-HCP/internal/metrics"
"github.com/prometheus/client_golang/prometheus/promhttp"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion frontend/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strconv"
"time"

"github.com/prometheus/client_golang/prometheus"
"golang.org/x/exp/maps"

"github.com/Azure/ARO-HCP/internal/metrics"
"github.com/prometheus/client_golang/prometheus"
)

type PrometheusEmitter struct {
Expand Down
3 changes: 2 additions & 1 deletion frontend/middleware_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (
"testing"
"time"

"github.com/google/uuid"

"github.com/Azure/ARO-HCP/internal/api"
"github.com/Azure/ARO-HCP/internal/api/arm"
"github.com/google/uuid"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/api/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import (
"reflect"
"strings"

"github.com/Azure/ARO-HCP/internal/api/arm"
validator "github.com/go-playground/validator/v10"

"github.com/Azure/ARO-HCP/internal/api/arm"
)

const (
Expand Down

0 comments on commit 384e3be

Please sign in to comment.