Skip to content

Commit b1bb18b

Browse files
committed
Reenable SA1019 in staticcheck linter
1 parent e029074 commit b1bb18b

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.golangci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ issues:
168168
- stylecheck
169169
text: "ST1003: should not use underscores in Go names;"
170170
path: .*(api|types)\/.*\/.*conversion.*\.go$
171-
# Can be drop once kubernetes-sigs/cluster-api-provider-openstack#1326 is done.
172-
- linters:
173-
- staticcheck
174-
text: "SA1019"
175171

176172
run:
177173
timeout: 10m

pkg/cloud/services/compute/instance_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ func TestService_normalizePorts(t *testing.T) {
11741174
},
11751175
},
11761176
},
1177-
Trunk: pointer.BoolPtr(false),
1177+
Trunk: pointer.Bool(false),
11781178
},
11791179
},
11801180
},
@@ -1198,7 +1198,7 @@ func TestService_normalizePorts(t *testing.T) {
11981198
},
11991199
},
12001200
},
1201-
Trunk: pointer.BoolPtr(false),
1201+
Trunk: pointer.Bool(false),
12021202
},
12031203
},
12041204
},
@@ -1223,7 +1223,7 @@ func TestService_normalizePorts(t *testing.T) {
12231223
},
12241224
},
12251225
},
1226-
Trunk: pointer.BoolPtr(true),
1226+
Trunk: pointer.Bool(true),
12271227
},
12281228
},
12291229
},
@@ -1233,7 +1233,7 @@ func TestService_normalizePorts(t *testing.T) {
12331233
{
12341234
Network: &infrav1.NetworkFilter{},
12351235
FixedIPs: nil,
1236-
Trunk: pointer.BoolPtr(true),
1236+
Trunk: pointer.Bool(true),
12371237
},
12381238
},
12391239
want: []infrav1.PortOpts{
@@ -1248,7 +1248,7 @@ func TestService_normalizePorts(t *testing.T) {
12481248
},
12491249
},
12501250
},
1251-
Trunk: pointer.BoolPtr(true),
1251+
Trunk: pointer.Bool(true),
12521252
},
12531253
},
12541254
},
@@ -1266,7 +1266,7 @@ func TestService_normalizePorts(t *testing.T) {
12661266
Network: &infrav1.NetworkFilter{
12671267
ID: networkID,
12681268
},
1269-
Trunk: pointer.BoolPtr(false),
1269+
Trunk: pointer.Bool(false),
12701270
},
12711271
},
12721272
},
@@ -1290,7 +1290,7 @@ func TestService_normalizePorts(t *testing.T) {
12901290
ID: networkID,
12911291
Name: "test-network",
12921292
},
1293-
Trunk: pointer.BoolPtr(false),
1293+
Trunk: pointer.Bool(false),
12941294
},
12951295
},
12961296
},
@@ -1322,7 +1322,7 @@ func TestService_normalizePorts(t *testing.T) {
13221322
},
13231323
},
13241324
},
1325-
Trunk: pointer.BoolPtr(false),
1325+
Trunk: pointer.Bool(false),
13261326
},
13271327
},
13281328
},
@@ -1357,7 +1357,7 @@ func TestService_normalizePorts(t *testing.T) {
13571357
},
13581358
},
13591359
},
1360-
Trunk: pointer.BoolPtr(false),
1360+
Trunk: pointer.Bool(false),
13611361
},
13621362
},
13631363
},
@@ -1445,7 +1445,7 @@ func TestService_normalizePorts(t *testing.T) {
14451445
},
14461446
},
14471447
},
1448-
Trunk: pointer.BoolPtr(false),
1448+
Trunk: pointer.Bool(false),
14491449
},
14501450
},
14511451
},

0 commit comments

Comments
 (0)