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 134be04
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 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: 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 134be04

Please sign in to comment.