assigner: implements task assignment for scans and dummy mock test #143
Annotations
7 errors and 1 warning
lint:
internal/assigner/assigner_test.go#L43
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
lint:
internal/assigner/assigner_test.go#L46
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
lint:
internal/assigner/assigner_test.go#L71
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
lint:
internal/restapi/v1/agenttasks/get_test.go#L177
func `uuidPtr` is unused (unused)
|
lint:
internal/assigner/assigner.go#L43
S1000: should use for range instead of for { select {} } (gosimple)
|
lint:
internal/assigner/assigner.go#L170
S1008: should use 'return resp.StatusCode == http.StatusOK' instead of 'if resp.StatusCode == http.StatusOK { return true }; return false' (gosimple)
|
lint
issues found
|
lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|