refactor(api): simplifying geoip initialization #16882
Annotations
93 errors and 19 warnings
validate (agent):
agent/main.go#L34
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (agent):
agent/main.go#L188
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (agent):
agent/main.go#L226
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (agent):
agent/main.go#L268
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (agent)
issues found
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (agent)
Cannot open: File exists
|
validate (ssh):
ssh/server/server.go#L95
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (ssh):
ssh/server/server.go#L98
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (ssh):
ssh/session/auther.go#L130
unused-parameter: parameter 'session' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (ssh):
ssh/web/websocket.go#L39
G115: integer overflow conversion uint64 -> int (gosec)
|
validate (ssh)
issues found
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (ssh)
Cannot open: File exists
|
validate (pkg):
pkg/agent/pkg/osauth/auth.go#L253
G115: integer overflow conversion int -> uint32 (gosec)
|
validate (pkg):
pkg/agent/pkg/osauth/auth.go#L254
G115: integer overflow conversion int -> uint32 (gosec)
|
validate (pkg):
pkg/agent/pkg/sysinfo/network.go#L23
redefines-builtin-id: redefinition of the built-in function min (revive)
|
validate (pkg):
pkg/agent/pkg/sysinfo/network.go#L55
redefines-builtin-id: redefinition of the built-in function min (revive)
|
validate (pkg):
pkg/agent/pkg/tunnel/tunnel.go#L63
unused-parameter: parameter 'e' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (pkg):
pkg/agent/pkg/tunnel/tunnel.go#L66
unused-parameter: parameter 'e' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (pkg):
pkg/agent/pkg/tunnel/tunnel.go#L69
unused-parameter: parameter 'e' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (pkg):
pkg/agent/pkg/yescrypt/yescrypt_test.go#L29
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (pkg):
pkg/agent/server/modes/connector/sessioner.go#L52
G115: integer overflow conversion int -> uint (gosec)
|
validate (pkg):
pkg/agent/server/modes/connector/sessioner.go#L103
G115: integer overflow conversion int -> uint (gosec)
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (pkg)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (cli)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api)
Cannot open: File exists
|
validate (api):
api/pkg/echo/handlers/binder_test.go#L31
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/device_test.go#L161
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/routes.go#L19
unused-parameter: parameter 'handler' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/sshkeys_test.go#L98
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/sshkeys_test.go#L106
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/stats_test.go#L33
unused-parameter: parameter 'updatePayloadMock' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/user_test.go#L169
unused-parameter: parameter 'updatePayloadMock' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/routes/user_test.go#L182
unused-parameter: parameter 'updatePayloadMock' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/server.go#L26
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (api):
api/store/mongo/device.go#L246
unused-parameter: parameter 'mongoctx' seems to be unused, consider removing or renaming it as _ (revive)
|
validate (tests):
tests/ssh_test.go#L784
G115: integer overflow conversion int -> uint32 (gosec)
|
validate (tests):
tests/ssh_test.go#L786
G115: integer overflow conversion int -> uint32 (gosec)
|
validate (tests)
issues found
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (tests)
Cannot open: File exists
|
validate (ui)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (agent)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (agent)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
validate (agent)
Restore cache failed: Dependencies file is not found in /home/runner/work/shellhub/shellhub. Supported file pattern: go.sum
|
validate (ssh)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (ssh)
Restore cache failed: Dependencies file is not found in /home/runner/work/shellhub/shellhub. Supported file pattern: go.sum
|
validate (ssh)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
validate (pkg)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (pkg)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
validate (pkg)
Restore cache failed: Dependencies file is not found in /home/runner/work/shellhub/shellhub. Supported file pattern: go.sum
|
validate (cli)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (cli)
Restore cache failed: Dependencies file is not found in /home/runner/work/shellhub/shellhub. Supported file pattern: go.sum
|
validate (cli)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
validate (api)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (api)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
validate (api)
Restore cache failed: Dependencies file is not found in /home/runner/work/shellhub/shellhub. Supported file pattern: go.sum
|
validate (tests)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
validate (tests)
Restore cache failed: Dependencies file is not found in /home/runner/work/shellhub/shellhub. Supported file pattern: go.sum
|
validate (tests)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|