chore: automated lint fixes #8241
Annotations
8 errors and 7 warnings
golangci-lint:
cns/service/main.go#L222
undefined: filepath (typecheck)
|
golangci-lint:
test/nnsmockserver/nnsmockserver.go#L31
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
golangci-lint:
common/utils.go#L184
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
|
golangci-lint:
common/utils.go#L243
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
|
golangci-lint:
cns/dockerclient/dockerclient.go#L155
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
|
golangci-lint:
cnm/ipam/ipam_test.go#L164
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
|
golangci-lint:
npm/metrics/prometheus_metrics_test.go#L32
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
|
golangci-lint
issues found
|
golangci-lint:
cns/hnsclient/hnsclient_linux.go#L42
unused-parameter: parameter 'ncPolicies' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cns/hnsclient/hnsclient_linux.go#L51
unused-parameter: parameter 'networkContainerID' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
nns/mockgrpcclient.go#L21
unused-parameter: parameter 'podName' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
nns/mockgrpcclient.go#L33
unused-parameter: parameter 'podName' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
ipam/manager_test.go#L17
dot-imports: should not use dot imports (revive)
|
golangci-lint:
ipam/manager_test.go#L18
dot-imports: should not use dot imports (revive)
|
Run actions/setup-go@v5
Restore cache failed: Dependencies file is not found in /home/runner/work/azure-container-networking/azure-container-networking. Supported file pattern: go.sum
|
The logs for this run have expired and are no longer available.
Loading