forked from openshift/hypershift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
89 lines (89 loc) · 2.38 KB
/
.golangci.yml
File metadata and controls
89 lines (89 loc) · 2.38 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "2"
run:
allow-parallel-runners: true
linters:
enable:
- misspell
settings:
misspell:
# The use of US spelling over other English spellings, like UK, is inline with the OpenShift conventions:
# https://github.com/openshift/enhancements/blob/master/CONVENTIONS.md#terminology-grammar-and-spelling
locale: US
# Typos to ignore.
# Should be in lower case.
ignore-rules:
- nto
exclusions:
warn-unused: true
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- staticcheck
text: 'SA1019: hcp.Status.Version is deprecated: Use versionStatus.desired.version instead.'
- linters:
- staticcheck
text: 'SA1019: hcp.Status.ReleaseImage is deprecated: Use versionStatus.desired.image instead.'
- linters:
- staticcheck
text: 'SA1019: hcp.Status.LastReleaseImageTransitionTime is deprecated'
- linters:
- staticcheck
text: 'SA1019: infra.Status.Platform is deprecated: Use platformStatus.type instead'
- linters:
- unused
text: const tuningConfigKey is unused
- linters:
- staticcheck
text: 'ST1001: should not use dot imports'
source: 'github.com/onsi/gomega'
- linters:
- staticcheck
text: 'ST1005: error strings should not be capitalized'
source: 'Konnectivity'
- linters:
- staticcheck
text: 'QF1008'
- linters:
- staticcheck
text: 'QF1007'
- linters:
- staticcheck
text: 'QF1001'
# aws-sdk-go v1 is deprecated but migration to v2 is a separate effort
- linters:
- staticcheck
text: 'SA1019: "github.com/aws/aws-sdk-go'
paths:
- third_party$
- builtin$
- examples$
severity:
default: error
formatters:
enable:
- gci
settings:
gci:
sections:
- standard
- dot
- prefix(github.com/openshift/hypershift)
- prefix(github.com/openshift)
- prefix(github.com/aws)
- prefix(github.com/Azure)
- prefix(k8s.io)
- prefix(sigs.k8s.io)
- default
custom-order: true
exclusions:
warn-unused: true
generated: lax
paths:
- third_party$
- builtin$
- examples$