refactor: fix warnings from golangci-lint #16885
Annotations
75 errors and 19 warnings
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/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):
pkg/agent/server/modes/connector/sessioner.go#L168
G115: integer overflow conversion int -> uint (gosec)
|
validate (pkg):
pkg/agent/server/modes/host/command/command_native.go#L25
G115: integer overflow conversion int -> uint32 (gosec)
|
validate (pkg):
pkg/agent/server/modes/host/pty.go#L55
G115: integer overflow conversion int -> uint16 (gosec)
|
validate (pkg):
pkg/agent/server/modes/host/pty.go#L103
G115: integer overflow conversion int -> uint16 (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 (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 (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 (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 (ui)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
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 (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
|
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 (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
|