Skip to content

refactor: optimize slice allocations and meta checks #4349

refactor: optimize slice allocations and meta checks

refactor: optimize slice allocations and meta checks #4349

Triggered via pull request June 19, 2026 16:39
Status Failure
Total duration 36s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Build: internal/resources/akscluster/helpers_test.go#L366
string `enable` has 4 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L313
string `name` has 3 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L135
string `azure` has 3 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L123
string `127.0.0.1` has 4 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L103
string `eastus` has 3 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L42
string `test-cluster` has 3 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L41
string `resource-group` has 3 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L40
string `sub-id` has 3 occurrences, make it a constant (goconst)
Build: internal/resources/akscluster/helpers_test.go#L39
string `test-cred` has 3 occurrences, make it a constant (goconst)
Build: internal/helper/request_url_test.go#L78
string `p1/p2/p3?k1=v1&k2=v2` has 3 occurrences, make it a constant (goconst)