Skip to content

Fix memory backend support for multiple queues #128

Fix memory backend support for multiple queues

Fix memory backend support for multiple queues #128

Triggered via pull request August 19, 2023 23:47
Status Failure
Total duration 1m 51s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 2 warnings
lint: backends/memory/memory_backend_test.go#L196
cognitive complexity 35 of func `TestFutureJobSchedulingMultipleQueues` is high (> 30) (gocognit)
lint: backends/memory/memory_backend_test.go#L160
line is 212 characters (lll)
lint: backends/memory/memory_backend_test.go#L195
`respones` is a misspelling of `response` (misspell)
lint: backends/memory/memory_backend.go#L258
Duplicate words (the) found (dupword)
lint: backends/memory/memory_backend_test.go#L305
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"handler1 should have handled %d jobs, but handled %d\", jobPerQueueCount, jobsProcessed1)" (goerr113)
lint: backends/memory/memory_backend_test.go#L309
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"handler2 should have handled %d jobs, but handled %d\", jobPerQueueCount, jobsProcessed2)" (goerr113)
lint
golangci-lint exit with code 4
lint: backends/memory/memory_backend_test.go#L290
increment-decrement: should replace jobsProcessed1 += 1 with jobsProcessed1++ (revive)
lint: backends/memory/memory_backend_test.go#L292
increment-decrement: should replace jobsProcessed2 += 1 with jobsProcessed2++ (revive)