Skip to content

Commit 8c119ba

Browse files
bennervmjlshen
authored andcommitted
Add importas golangci-linter
1 parent eeba13c commit 8c119ba

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.golangci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,20 @@ linters:
1616
- goimports
1717
- gosimple
1818
- govet
19+
- importas
1920
- ineffassign
2021
- staticcheck
2122
- typecheck
2223
- unused
2324
linters-settings:
2425
goimports:
2526
local-prefixes: github.com/Azure/ARO-HCP
27+
importas:
28+
no-unaliased: true
29+
alias:
30+
- pkg: github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1
31+
alias: cmv1
32+
- pkg: github.com/Azure/azure-sdk-for-go/sdk/azcore/arm
33+
alias: azcorearm
34+
- pkg: github.com/openshift/api/(\w+)/(v[\w\d]+)
35+
alias: $1$2

frontend/pkg/frontend/ocm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
azcorearm "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm"
88
cmv1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1"
9-
v1 "github.com/openshift/api/config/v1"
9+
configv1 "github.com/openshift/api/config/v1"
1010

1111
"github.com/Azure/ARO-HCP/internal/api"
1212
"github.com/Azure/ARO-HCP/internal/api/arm"
@@ -85,7 +85,7 @@ func (f *Frontend) ConvertCStoHCPOpenShiftCluster(systemData *arm.SystemData, cl
8585
IssuerURL: "",
8686
ExternalAuth: api.ExternalAuthConfigProfile{
8787
Enabled: false,
88-
ExternalAuths: []*v1.OIDCProvider{},
88+
ExternalAuths: []*configv1.OIDCProvider{},
8989
},
9090
Ingress: []*api.IngressProfile{
9191
{

0 commit comments

Comments
 (0)