Skip to content

feat: status place holder #25

feat: status place holder

feat: status place holder #25

Triggered via pull request June 19, 2024 13:27
Status Failure
Total duration 59s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
Lint: tools/cachespam/main.go#L24
Error return value of `(github.com/haveachin/infrared/pkg/infrared/protocol/handshaking.ServerBoundHandshake).Marshal` is not checked (errcheck)
Lint: tools/cachespam/main.go#L25
Error return value of `pk.WriteTo` is not checked (errcheck)
Lint: tools/cachespam/main.go#L30
Error return value of `pk.Encode` is not checked (errcheck)
Lint: tools/cachespam/main.go#L31
Error return value of `pk.WriteTo` is not checked (errcheck)
Lint: pkg/infrared/server.go#L337
Error return value of `hash.Write` is not checked (errcheck)
Lint: pkg/infrared/server.go#L338
Error return value of `hash.WriteString` is not checked (errcheck)
Lint: pkg/infrared/handshake_response.go#L143
cognitive complexity 21 of func `(*OverrideStatusResponse).OverrideStatusResponseJSON` is high (> 20) (gocognit)
Lint: pkg/infrared/server.go#L238
File is not `goimports`-ed (goimports)
Lint: pkg/infrared/server.go#L332
(*statusResponseCache).cacheStatusResponse - result 0 (error) is always nil (unparam)
Lint: tools/cachespam/main.go#L15
var `statusRequestPayload` is unused (unused)
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint: pkg/infrared/handshake_response.go#L6
blank-imports: a blank import should be only in a main or test package, or have a comment justifying it (revive)
Lint: pkg/infrared/infrared.go#L287
unused-parameter: parameter 'c' seems to be unused, consider removing or renaming it as _ (revive)