Fix lint: upgrade to support go1.22 #6
Annotations
10 errors
lint:
pkg/server/backend_manager.go#L290
G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
|
lint:
cmd/test-server/main.go#L92
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/test-client/main.go#L219
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/test-client/main.go#L482
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/test-client/main.go#L559
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
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)
|
lint:
pkg/server/server_test.go#L140
unused-parameter: parameter 'action' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
pkg/server/server_test.go#L812
unused-parameter: parameter 'agentConn' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/agent/app/server.go#L64
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/agent/app/server.go#L185
unused-parameter: parameter 'r' seems to be unused, consider removing or renaming it as _ (revive)
|