-
Notifications
You must be signed in to change notification settings - Fork 110
Expand file tree
/
Copy path.golangci.yml
More file actions
59 lines (59 loc) · 1.49 KB
/
.golangci.yml
File metadata and controls
59 lines (59 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "2"
run:
timeout: 10m
modules-download-mode: readonly
issues:
# We want to make sure we get a full report every time. Setting these
# to zero disables the limit.
max-issues-per-linter: 0
max-same-issues: 0
linters:
exclusions:
presets:
- std-error-handling
default: none
enable:
- errcheck
- govet
- importas
- ineffassign
- staticcheck
- unused
settings:
importas:
no-unaliased: true
alias:
- pkg: github.com/openshift-online/ocm-sdk-go/aro_hcp/v1alpha1
alias: arohcpv1alpha1
- pkg: github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1
alias: cmv1
- pkg: github.com/Azure/azure-sdk-for-go/sdk/azcore/arm
alias: azcorearm
- pkg: github.com/openshift/api/(\w+)/(v[\w\d]+)
alias: $1$2
- pkg: github.com/Azure/ARO-HCP/test/sdk/v20240610preview/resourcemanager/redhatopenshifthcp/armredhatopenshifthcp"
alias: hcpsdk20240610preview
- pkg: github.com/Azure/ARO-HCP/backend/pkg/azure/client
alias: azureclient
staticcheck:
dot-import-whitelist:
- "github.com/onsi/ginkgo"
- "github.com/onsi/ginkgo/v2"
- "github.com/onsi/gomega"
formatters:
enable:
- gci
- gofmt
settings:
gci:
custom-order: true
sections:
- standard
- blank
- dot
- default
- prefix(k8s.io)
- prefix(sigs.k8s.io)
- prefix(github.com/Azure)
- prefix(github.com/openshift)
- prefix(github.com/Azure/ARO-HCP)