Skip to content

Commit a2d368d

Browse files
committed
do not enable, but improve one spot appendAssign found
On-behalf-of: @SAP [email protected]
1 parent 61ec469 commit a2d368d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.golangci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ linters:
4141
settings:
4242
gocritic:
4343
disabled-checks:
44-
# - appendAssign
44+
- appendAssign
4545
- dupImport # https://github.com/go-critic/go-critic/issues/845
4646
- ifElseChain
4747
- octalLiteral
4848
- typeDefFirst
4949
- unnamedResult
5050
- whyNoLint
51-
# - unnecessaryBlock
51+
- unnecessaryBlock
5252
- rangeValCopy
5353
- hugeParam
5454
- commentedOutCode
5555
- emptyStringTest
5656
- singleCaseSwitch
57-
# - nestingReduce
57+
- nestingReduce
5858
- tooManyResultsChecker
5959
enabled-tags:
6060
- diagnostic
@@ -78,7 +78,7 @@ linters:
7878
require-specific: true
7979
allow-unused: false
8080
revive:
81-
# make sure error-strings issues actually surface (default confidence is 0.8)
81+
# make sure error-strings issues actually surface (default confidence is 0.8)
8282
confidence: 0.6
8383
rules:
8484
- name: context-keys-type

test/e2e/apibinding/default_apibinding_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func TestDefaultAPIBinding(t *testing.T) {
111111
},
112112
},
113113
}
114-
apiExportCreated, err := kcpClusterClient.Cluster(providerPath).ApisV1alpha2().APIExports().Create(ctx, apiExport, metav1.CreateOptions{})
114+
_, err = kcpClusterClient.Cluster(providerPath).ApisV1alpha2().APIExports().Create(ctx, apiExport, metav1.CreateOptions{})
115115
require.NoError(t, err)
116116

117117
workspaceType := tenancyv1alpha1.WorkspaceType{
@@ -195,7 +195,7 @@ func TestDefaultAPIBinding(t *testing.T) {
195195

196196
updatedAPIExport := currentAPIExport.DeepCopy()
197197

198-
updatedAPIExport.Spec.Resources = append(apiExportCreated.Spec.Resources, apisv1alpha2.ResourceSchema{
198+
updatedAPIExport.Spec.Resources = append(updatedAPIExport.Spec.Resources, apisv1alpha2.ResourceSchema{
199199
Group: "gateway.networking.k8s.io",
200200
Name: "tlsroutes",
201201
Schema: "latest.tlsroutes.gateway.networking.k8s.io",

test/integration/framework/goleak.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ var (
9595
// 14s as etcd sets a client request timeout of up to 7 seconds when
9696
// shutting down the server and then starts shutting down everything
9797
// else.
98-
// A shorter timestan d would lead to false positives in the tests.
98+
// A shorter timespan d would lead to false positives in the tests.
9999
WaitTime = 14 * time.Second
100100
)
101101

0 commit comments

Comments
 (0)