Skip to content

Commit 59230a7

Browse files
Re-enable passed linters (#871)
* Re-enable passed linters * Refresh fixtures for TestInstance_GetMonthlyTransfer
1 parent f76ae6d commit 59230a7

File tree

2 files changed

+18
-30
lines changed

2 files changed

+18
-30
lines changed

.golangci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ linters:
55
default: all
66
disable:
77
- bodyclose
8-
- contextcheck
98
- cyclop
109
- depguard
1110
- dupl
12-
- durationcheck
1311
- err113
1412
- errcheck
1513
- errname
@@ -19,30 +17,20 @@ linters:
1917
- forcetypeassert
2018
- gochecknoglobals
2119
- gochecknoinits
22-
- gocyclo
2320
- godot
24-
- gosec
2521
- inamedparam
2622
- lll
2723
- musttag
28-
- nakedret
2924
- nilerr
3025
- nlreturn
31-
- noctx
3226
- noinlineerr
3327
- nolintlint
3428
- nonamedreturns
3529
- perfsprint
3630
- recvcheck
37-
- rowserrcheck
38-
- sqlclosecheck
3931
- staticcheck
40-
- tagalign
4132
- tagliatelle
42-
- tparallel
43-
- unparam
4433
- varnamelen
45-
- wastedassign
4634
- wrapcheck
4735
- wsl
4836
settings:

test/integration/fixtures/TestInstance_GetMonthlyTransfer.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ interactions:
446446
Content-Type:
447447
- application/json
448448
Expires:
449-
- Mon, 08 Dec 2025 16:21:24 GMT
449+
- Mon, 05 Jan 2026 15:49:22 GMT
450450
Pragma:
451451
- no-cache
452452
Strict-Transport-Security:
@@ -472,7 +472,7 @@ interactions:
472472
code: 200
473473
duration: ""
474474
- request:
475-
body: '{"region":"gb-lon","type":"g6-nanode-1","label":"go-test-ins-wo-disk-k42bgqvb9626","firewall_id":3573134,"booted":false}'
475+
body: '{"region":"au-mel","type":"g6-nanode-1","label":"go-test-ins-wo-disk-5ur82y1c51gm","firewall_id":3649236,"booted":false}'
476476
form: {}
477477
headers:
478478
Accept:
@@ -484,19 +484,19 @@ interactions:
484484
url: https://api.linode.com/v4beta/linode/instances
485485
method: POST
486486
response:
487-
body: '{"id": 88407723, "label": "go-test-ins-wo-disk-k42bgqvb9626", "group":
487+
body: '{"id": 89543157, "label": "go-test-ins-wo-disk-5ur82y1c51gm", "group":
488488
"", "status": "provisioning", "created": "2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05",
489-
"type": "g6-nanode-1", "ipv4": ["172.236.1.42"], "ipv6": "1234::5678/128",
490-
"image": null, "region": "gb-lon", "site_type": "core", "specs": {"disk": 25600,
489+
"type": "g6-nanode-1", "ipv4": ["172.236.62.103"], "ipv6": "1234::5678/128",
490+
"image": null, "region": "au-mel", "site_type": "core", "specs": {"disk": 25600,
491491
"memory": 1024, "vcpus": 1, "gpus": 0, "transfer": 1000, "accelerated_devices":
492492
0}, "alerts": {"cpu": 90, "network_in": 10, "network_out": 10, "transfer_quota":
493493
80, "io": 10000}, "backups": {"enabled": false, "available": false, "schedule":
494494
{"day": null, "window": null}, "last_successful": null}, "hypervisor": "kvm",
495-
"watchdog_enabled": true, "tags": [], "host_uuid": "3be48bd537d9a354ea41df6b60e4a961ab365af4",
495+
"watchdog_enabled": true, "tags": [], "host_uuid": "aa52131295cf7351a602605960d45b04136019b6",
496496
"has_user_data": false, "placement_group": null, "disk_encryption": "enabled",
497497
"lke_cluster_id": null, "capabilities": ["Block Storage Encryption", "SMTP Enabled",
498498
"Maintenance Policy"], "interface_generation": "legacy_config", "maintenance_policy":
499-
"linode/power_off_on", "locks": []}'
499+
"linode/migrate", "locks": []}'
500500
headers:
501501
Access-Control-Allow-Credentials:
502502
- "true"
@@ -519,7 +519,7 @@ interactions:
519519
Content-Type:
520520
- application/json
521521
Expires:
522-
- Mon, 08 Dec 2025 16:21:24 GMT
522+
- Mon, 05 Jan 2026 15:49:22 GMT
523523
Pragma:
524524
- no-cache
525525
Strict-Transport-Security:
@@ -544,7 +544,7 @@ interactions:
544544
code: 200
545545
duration: ""
546546
- request:
547-
body: '{"label":"go-test-conf-q318o5as4mm0","devices":{},"interfaces":null}'
547+
body: '{"label":"go-test-conf-06tz4ih5hz11","devices":{},"interfaces":null}'
548548
form: {}
549549
headers:
550550
Accept:
@@ -553,10 +553,10 @@ interactions:
553553
- application/json
554554
User-Agent:
555555
- linodego/dev https://github.com/linode/linodego
556-
url: https://api.linode.com/v4beta/linode/instances/88407723/configs
556+
url: https://api.linode.com/v4beta/linode/instances/89543157/configs
557557
method: POST
558558
response:
559-
body: '{"id": 91909448, "label": "go-test-conf-q318o5as4mm0", "helpers": {"updatedb_disabled":
559+
body: '{"id": 93051256, "label": "go-test-conf-06tz4ih5hz11", "helpers": {"updatedb_disabled":
560560
true, "distro": true, "modules_dep": true, "network": false, "devtmpfs_automount":
561561
true}, "kernel": "linode/latest-64bit", "comments": "", "memory_limit": 0, "created":
562562
"2018-01-02T03:04:05", "updated": "2018-01-02T03:04:05", "root_device": "/dev/sda",
@@ -587,7 +587,7 @@ interactions:
587587
Content-Type:
588588
- application/json
589589
Expires:
590-
- Mon, 08 Dec 2025 16:21:25 GMT
590+
- Mon, 05 Jan 2026 15:49:23 GMT
591591
Pragma:
592592
- no-cache
593593
Strict-Transport-Security:
@@ -620,7 +620,7 @@ interactions:
620620
- application/json
621621
User-Agent:
622622
- linodego/dev https://github.com/linode/linodego
623-
url: https://api.linode.com/v4beta/linode/instances/88407723/transfer/2025/12
623+
url: https://api.linode.com/v4beta/linode/instances/89543157/transfer/2026/1
624624
method: GET
625625
response:
626626
body: '{"bytes_in": 0, "bytes_out": 0, "bytes_total": 0}'
@@ -648,7 +648,7 @@ interactions:
648648
Content-Type:
649649
- application/json
650650
Expires:
651-
- Mon, 08 Dec 2025 16:21:25 GMT
651+
- Mon, 05 Jan 2026 15:49:23 GMT
652652
Pragma:
653653
- no-cache
654654
Strict-Transport-Security:
@@ -682,7 +682,7 @@ interactions:
682682
- application/json
683683
User-Agent:
684684
- linodego/dev https://github.com/linode/linodego
685-
url: https://api.linode.com/v4beta/linode/instances/88407723/transfer/2025/12
685+
url: https://api.linode.com/v4beta/linode/instances/89543157/transfer/2026/1
686686
method: GET
687687
response:
688688
body: '{"bytes_in": 0, "bytes_out": 0, "bytes_total": 0}'
@@ -710,7 +710,7 @@ interactions:
710710
Content-Type:
711711
- application/json
712712
Expires:
713-
- Mon, 08 Dec 2025 16:21:25 GMT
713+
- Mon, 05 Jan 2026 15:49:23 GMT
714714
Pragma:
715715
- no-cache
716716
Strict-Transport-Security:
@@ -744,7 +744,7 @@ interactions:
744744
- application/json
745745
User-Agent:
746746
- linodego/dev https://github.com/linode/linodego
747-
url: https://api.linode.com/v4beta/linode/instances/88407723
747+
url: https://api.linode.com/v4beta/linode/instances/89543157
748748
method: DELETE
749749
response:
750750
body: '{}'
@@ -772,7 +772,7 @@ interactions:
772772
Content-Type:
773773
- application/json
774774
Expires:
775-
- Mon, 08 Dec 2025 16:21:25 GMT
775+
- Mon, 05 Jan 2026 15:49:23 GMT
776776
Pragma:
777777
- no-cache
778778
Strict-Transport-Security:

0 commit comments

Comments
 (0)