Start two CNS servers with different handlers #10079
Annotations
18 errors and 8 warnings
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L71
SA5011: possible nil pointer dereference (staticcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L76
SA5011(related information): this check suggests that the pointer can be nil (staticcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L73
SA5011: possible nil pointer dereference (staticcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L74
SA5011: possible nil pointer dereference (staticcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L69
error returned from external package is unwrapped: sig: func github.com/Azure/azure-container-networking/cns/restserver.NewHTTPRestService(config *github.com/Azure/azure-container-networking/cns/common.ServiceConfig, wscli github.com/Azure/azure-container-networking/cns/restserver.interfaceGetter, wsproxy github.com/Azure/azure-container-networking/cns/restserver.wireserverProxy, nmagentClient github.com/Azure/azure-container-networking/cns/restserver.nmagentClient, endpointStateStore github.com/Azure/azure-container-networking/store.KeyValueStore, gen github.com/Azure/azure-container-networking/cns/restserver.CNIConflistGenerator, homeAzMonitor *github.com/Azure/azure-container-networking/cns/restserver.HomeAzMonitor) (*github.com/Azure/azure-container-networking/cns/restserver.HTTPRestService, error) (wrapcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L82
error returned from external package is unwrapped: sig: func (*github.com/Azure/azure-container-networking/cns/restserver.HTTPRestService).Init(config *github.com/Azure/azure-container-networking/cns/common.ServiceConfig) error (wrapcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L88
error returned from external package is unwrapped: sig: func (*github.com/Azure/azure-container-networking/cns/restserver.HTTPRestService).Start(config *github.com/Azure/azure-container-networking/cns/common.ServiceConfig) error (wrapcheck)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L106
error returned from external package is unwrapped: sig: func net.DialTimeout(network string, address string, timeout time.Duration) (net.Conn, error) (wrapcheck)
|
Lint (1.21.x, ubuntu-latest)
issues found
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L71
SA5011: possible nil pointer dereference (staticcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L76
SA5011(related information): this check suggests that the pointer can be nil (staticcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L73
SA5011: possible nil pointer dereference (staticcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L74
SA5011: possible nil pointer dereference (staticcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L69
error returned from external package is unwrapped: sig: func github.com/Azure/azure-container-networking/cns/restserver.NewHTTPRestService(config *github.com/Azure/azure-container-networking/cns/common.ServiceConfig, wscli github.com/Azure/azure-container-networking/cns/restserver.interfaceGetter, wsproxy github.com/Azure/azure-container-networking/cns/restserver.wireserverProxy, nmagentClient github.com/Azure/azure-container-networking/cns/restserver.nmagentClient, endpointStateStore github.com/Azure/azure-container-networking/store.KeyValueStore, gen github.com/Azure/azure-container-networking/cns/restserver.CNIConflistGenerator, homeAzMonitor *github.com/Azure/azure-container-networking/cns/restserver.HomeAzMonitor) (*github.com/Azure/azure-container-networking/cns/restserver.HTTPRestService, error) (wrapcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L82
error returned from external package is unwrapped: sig: func (*github.com/Azure/azure-container-networking/cns/restserver.HTTPRestService).Init(config *github.com/Azure/azure-container-networking/cns/common.ServiceConfig) error (wrapcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L88
error returned from external package is unwrapped: sig: func (*github.com/Azure/azure-container-networking/cns/restserver.HTTPRestService).Start(config *github.com/Azure/azure-container-networking/cns/common.ServiceConfig) error (wrapcheck)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L106
error returned from external package is unwrapped: sig: func net.DialTimeout(network string, address string, timeout time.Duration) (net.Conn, error) (wrapcheck)
|
Lint (1.21.x, windows-latest)
issues found
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L23
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L37
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint (1.21.x, ubuntu-latest):
cns/restserver/v2/server_test.go#L48
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (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):
cns/restserver/v2/server_test.go#L23
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L37
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint (1.21.x, windows-latest):
cns/restserver/v2/server_test.go#L48
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
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
|