Address potential risks detected by Southeast University's threat detection scan. #99
reviewdog.yml
on: pull_request
runner / golangci-lint
15s
Annotations
4 errors and 1 warning
runner / golangci-lint:
znet/connection.go#L550
[golangci] reported by reviewdog 🐶
File is not `gofmt`-ed with `-s` (gofmt)
Raw Output:
znet/connection.go:550: File is not `gofmt`-ed with `-s` (gofmt)
|
runner / golangci-lint:
zutils/shard_lock_map_test.go#L370
[golangci] reported by reviewdog 🐶
printf: non-constant format string in call to (*testing.common).Errorf (govet)
Raw Output:
zutils/shard_lock_map_test.go:370:12: printf: non-constant format string in call to (*testing.common).Errorf (govet)
t.Errorf(err.Error())
^
|
runner / golangci-lint:
znet/acceptdelay_test.go#L33
[golangci] reported by reviewdog 🐶
SA3000: TestMain should call os.Exit to set exit code (staticcheck)
Raw Output:
znet/acceptdelay_test.go:33:1: SA3000: TestMain should call os.Exit to set exit code (staticcheck)
func TestMain(m *testing.M) {
^
|
runner / golangci-lint
reviewdog exited with status code: 1
|
runner / golangci-lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|