fix: resolve some of the errors spot with the lint. #5
Annotations
10 errors and 1 warning
Test & Lint:
server/processing/processor.go#L125
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
|
Test & Lint:
errors/errors.go#L167
Error return value of `w.Write` is not checked (errcheck)
|
Test & Lint:
server/server.go#L79
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
Test & Lint:
server/server.go#L118
Error return value of `(*encoding/json.Encoder).Encode` is not checked (errcheck)
|
Test & Lint:
server/server_test.go#L221
Error return value of `w.Write` is not checked (errcheck)
|
Test & Lint:
server/server.go#L364
func `main` is unused (unused)
|
Test & Lint:
server/middleware/request_id.go#L22
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
|
Test & Lint:
server/handlers/completion.go#L345
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
|
Test & Lint:
server/handlers/completion.go#L346
SA4006: this value of `r` is never used (staticcheck)
|
Test & Lint:
server/processing/processor.go#L125
SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)
|
Test & Lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|