You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text: 'G108: Profiling endpoint is automatically exposed on /debug/pprof'
87
+
- linters:
88
+
- gosec
89
+
text: 'G115: integer overflow conversion int -> int32'
90
+
- linters:
91
+
- govet
92
+
text: 'printf: non-constant format string in call to sigs.k8s.io/cluster-api/util/conditions.MarkFalse'
93
+
- linters:
94
+
- revive
95
+
text: 'exported: exported method .*\.(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported'
96
+
- linters:
97
+
- errcheck
98
+
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
99
+
- linters:
100
+
- revive
101
+
source: _ "embed"
102
+
- linters:
103
+
- revive
104
+
text: exported (method|function|type|const) (.+) should have comment or be unexported
105
+
source: (func|type).*Fake.*
106
+
- linters:
107
+
- revive
108
+
path: fake_\.go
109
+
text: exported (method|function|type|const) (.+) should have comment or be unexported
110
+
- linters:
111
+
- revive
112
+
path: (framework|e2e|infrastructure/docker)/.*.go
113
+
text: exported (method|function|type|const) (.+) should have comment or be unexported
114
+
- linters:
115
+
- unparam
116
+
text: always receives
117
+
- path: _test\.go
118
+
text: should not use dot imports
119
+
- path: (framework|e2e)/.*.go
120
+
text: should not use dot imports
121
+
- path: _test\.go
122
+
text: cyclomatic complexity
123
+
- linters:
124
+
- gocritic
125
+
text: 'appendAssign: append result not assigned to the same slice'
126
+
- linters:
127
+
- staticcheck
128
+
text: 'SA1019: (s.GCPManagedControlPlane.Status.CurrentVersion|s.scope.GCPManagedControlPlane.Status.CurrentVersion|spec.ControlPlaneVersion|s.GCPManagedControlPlane.Spec.ControlPlaneVersion|s.scope.GCPManagedControlPlane.Spec.ControlPlaneVersion) is deprecated: This field will soon be removed and you are expected to use Version instead.'
129
+
- path: (.+)\.go$
130
+
text: Subprocess launch(ed with variable|ing should be audited)
131
+
- path: (.+)\.go$
132
+
text: (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
133
+
- path: (.+)\.go$
134
+
text: (G104|G307)
135
+
paths:
136
+
- zz_generated.*\.go$
137
+
- .*conversion.*\.go$
138
+
- mock*
139
+
- third_party$
140
+
- builtin$
141
+
- examples$
129
142
issues:
130
-
max-same-issues: 0
131
143
max-issues-per-linter: 0
132
-
# We are disabling default golangci exclusions because we want to help reviewers to focus on reviewing the most relevant
133
-
# changes in PRs and avoid nitpicking.
134
-
exclude-use-default: false
135
-
exclude-files:
136
-
- "zz_generated.*\\.go$"
137
-
- ".*conversion.*\\.go$"
138
-
exclude-dirs:
139
-
- mock*
140
-
# List of regexps of issue texts to exclude, empty list by default.
141
-
exclude:
142
-
# The following are being worked on to remove their exclusion. This list should be reduced or go away all together over time.
143
-
# If it is decided they will not be addressed they should be moved above this comment.
144
-
- Subprocess launch(ed with variable|ing should be audited)
145
-
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
146
-
- (G104|G307)
147
-
exclude-rules:
148
-
- linters:
149
-
- gosec
150
-
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"
151
-
- linters:
152
-
- gosec
153
-
text: "G115: integer overflow conversion int -> int32"
154
-
- linters:
155
-
- govet
156
-
text: "printf: non-constant format string in call to sigs.k8s.io/cluster-api/util/conditions.MarkFalse"
157
-
- linters:
158
-
- revive
159
-
text: "exported: exported method .*\\.(Reconcile|SetupWithManager|SetupWebhookWithManager) should have comment or be unexported"
160
-
- linters:
161
-
- errcheck
162
-
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
163
-
# With Go 1.16, the new embed directive can be used with an un-named import,
164
-
# revive (previously, golint) only allows these to be imported in a main.go, which wouldn't work for us.
165
-
# This directive allows the embed package to be imported with an underscore everywhere.
166
-
- linters:
167
-
- revive
168
-
source: _ "embed"
169
-
# Exclude some packages or code to require comments, for example test code, or fake clients.
170
-
- linters:
171
-
- revive
172
-
text: exported (method|function|type|const) (.+) should have comment or be unexported
173
-
source: (func|type).*Fake.*
174
-
- linters:
175
-
- revive
176
-
text: exported (method|function|type|const) (.+) should have comment or be unexported
177
-
path: fake_\.go
178
-
- linters:
179
-
- revive
180
-
text: exported (method|function|type|const) (.+) should have comment or be unexported
# Disable unparam "always receives" which might not be really
183
-
# useful when building libraries.
184
-
- linters:
185
-
- unparam
186
-
text: always receives
187
-
# Dot imports for gomega or ginkgo are allowed
188
-
# within test files.
189
-
- path: _test\.go
190
-
text: should not use dot imports
191
-
- path: (framework|e2e)/.*.go
192
-
text: should not use dot imports
193
-
- path: _test\.go
194
-
text: cyclomatic complexity
195
-
# Append should be able to assign to a different var/slice.
196
-
- linters:
197
-
- gocritic
198
-
text: "appendAssign: append result not assigned to the same slice"
199
-
# Specific exclude rules for deprecated fields that are still part of the codebase.
200
-
# These should be removed as the referenced deprecated item is removed from the project.
201
-
- linters:
202
-
- staticcheck
203
-
text: "SA1019: (s.GCPManagedControlPlane.Status.CurrentVersion|s.scope.GCPManagedControlPlane.Status.CurrentVersion|spec.ControlPlaneVersion|s.GCPManagedControlPlane.Spec.ControlPlaneVersion|s.scope.GCPManagedControlPlane.Spec.ControlPlaneVersion) is deprecated: This field will soon be removed and you are expected to use Version instead."
0 commit comments