fix(test): resolve nil pointer dereference warnings (SA5011) #307
ci.yml
on: push
Build Frontend
21s
Lint
1m 1s
Matrix: test
Test (Race Detector)
Benchmark
Integration Tests
0s
Security Scan
0s
Binary Analysis
0s
Container Image Scan
0s
Annotations
13 errors and 2 warnings
|
Build Frontend
Process completed with exit code 1.
|
|
Build Frontend
Process completed with exit code 2.
|
|
Lint:
internal/discovery/consul.go#L120
type consulHealthCheck is unused (U1000)
|
|
Lint:
internal/discovery/consul.go#L107
type consulService is unused (U1000)
|
|
Lint:
internal/conn/pool_test.go#L1464
this result of append is never used, except maybe in other appends (SA4010)
|
|
Lint:
internal/config/yaml/yaml_test.go#L1956
type CustomTime is unused (U1000)
|
|
Lint:
internal/config/hcl/hcl_test.go#L735
type Admin is unused (U1000)
|
|
Lint:
internal/cluster/snapshot_test.go#L59
func (*kvStateMachine).size is unused (U1000)
|
|
Lint:
internal/cluster/snapshot_ops.go#L249
field mu is unused (U1000)
|
|
Lint:
internal/cluster/gossip_types.go#L229
type message is unused (U1000)
|
|
Lint:
internal/cluster/config_sm_test.go#L446
this check suggests that the pointer can be nil
|
|
Lint:
internal/cluster/config_sm_test.go#L449
possible nil pointer dereference (SA5011)
|
|
Lint
golangci-lint exit with code 3
|
|
Build Frontend
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Lint
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, golangci/golangci-lint-action@v6. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|