Fix lint: upgrade to support go1.22 #6
Annotations
10 errors
golangci-lint:
pkg/server/backend_manager.go#L290
G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
|
golangci-lint:
cmd/test-server/main.go#L92
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cmd/test-client/main.go#L219
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cmd/test-client/main.go#L482
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cmd/test-client/main.go#L559
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/server/server.go#L135
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
|
golangci-lint:
pkg/server/server_test.go#L140
unused-parameter: parameter 'action' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/server/server_test.go#L812
unused-parameter: parameter 'agentConn' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cmd/agent/app/server.go#L64
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cmd/agent/app/server.go#L185
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|
Loading