Skip to content

chore: automated lint fixes #8241

chore: automated lint fixes

chore: automated lint fixes #8241

Triggered via pull request December 19, 2023 17:00
Status Failure
Total duration 5m 27s
Artifacts

golangci.yaml

on: pull_request
Matrix: Lint
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 8 warnings
Lint (1.21.x, ubuntu-latest): cns/service/main.go#L222
undefined: filepath (typecheck)
Lint (1.21.x, ubuntu-latest): test/nnsmockserver/nnsmockserver.go#L31
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Lint (1.21.x, ubuntu-latest): common/utils.go#L184
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
Lint (1.21.x, ubuntu-latest): common/utils.go#L243
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
Lint (1.21.x, ubuntu-latest): cns/dockerclient/dockerclient.go#L155
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
Lint (1.21.x, ubuntu-latest): cnm/ipam/ipam_test.go#L164
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
Lint (1.21.x, ubuntu-latest): npm/metrics/prometheus_metrics_test.go#L32
should rewrite http.NewRequestWithContext or add (*Request).WithContext (noctx)
Lint (1.21.x, ubuntu-latest)
issues found
Lint (1.21.x, windows-latest)
undefined: filepath"
Lint (1.21.x, windows-latest)
undefined: filepath)"
Lint (1.21.x, windows-latest)
\"fmt\" imported and not used)"
Lint (1.21.x, windows-latest)
n.NpmNamespaceCacheV2 undefined (type *NetworkPolicyServer has no field or method NpmNamespaceCacheV2)"
Lint (1.21.x, windows-latest)
n.PodInformer undefined (type *NetworkPolicyServer has no field or method PodInformer)"
Lint (1.21.x, windows-latest)
n.NpmNamespaceCacheV2 undefined (type *NetworkPolicyServer has no field or method NpmNamespaceCacheV2)"
Lint (1.21.x, windows-latest)
n.PodControllerV2 undefined (type *NetworkPolicyServer has no field or method PodControllerV2)"
Lint (1.21.x, windows-latest)
n.NsInformer undefined (type *NetworkPolicyServer has no field or method NsInformer)"
Lint (1.21.x, windows-latest)
n.NpmNamespaceCacheV2 undefined (type *NetworkPolicyServer has no field or method NpmNamespaceCacheV2)"
Lint (1.21.x, windows-latest)
n.NamespaceControllerV2 undefined (type *NetworkPolicyServer has no field or method NamespaceControllerV2)"
Lint (1.21.x, ubuntu-latest): cns/hnsclient/hnsclient_linux.go#L42
unused-parameter: parameter 'ncPolicies' seems to be unused, consider removing or renaming it as _ (revive)
Lint (1.21.x, ubuntu-latest): cns/hnsclient/hnsclient_linux.go#L51
unused-parameter: parameter 'networkContainerID' seems to be unused, consider removing or renaming it as _ (revive)
Lint (1.21.x, ubuntu-latest): nns/mockgrpcclient.go#L21
unused-parameter: parameter 'podName' seems to be unused, consider removing or renaming it as _ (revive)
Lint (1.21.x, ubuntu-latest): nns/mockgrpcclient.go#L33
unused-parameter: parameter 'podName' seems to be unused, consider removing or renaming it as _ (revive)
Lint (1.21.x, ubuntu-latest): ipam/manager_test.go#L17
dot-imports: should not use dot imports (revive)
Lint (1.21.x, ubuntu-latest): ipam/manager_test.go#L18
dot-imports: should not use dot imports (revive)
Lint (1.21.x, ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/azure-container-networking/azure-container-networking. Supported file pattern: go.sum
Lint (1.21.x, windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\azure-container-networking\azure-container-networking. Supported file pattern: go.sum