Skip to content

use wazero

use wazero #400

Triggered via pull request December 20, 2024 10:30
Status Failure
Total duration 29s
Artifacts

lint-go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 11 warnings
lint: internal/api/lib.go#L60
Error return value of `unix.Flock` is not checked (errcheck)
lint: internal/api/lib.go#L78
Error return value of `unix.Flock` is not checked (errcheck)
lint: internal/api/mocks.go#L539
commentFormatting: put a space between `//` and comment text (gocritic)
lint: internal/api/mocks.go#L529
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: internal/api/lib_test.go#L1364
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: internal/runtime/hostfunctions.go#L366
func `hostNextValue` is unused (unused)
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
lint: internal/api/testdb/memdb_iterator.go#L108
empty-block: this block is empty, you can remove it (revive)
lint: internal/runtime/wazeroruntime.go#L36
exported: type name will be used as runtime.RuntimeEnvironment by other packages, and that stutters; consider calling this Environment (revive)
lint: internal/runtime/hostfunctions.go#L538
context-keys-type: should not use basic type string as key in context.WithValue (revive)
lint: internal/runtime/hostfunctions.go#L547
context-keys-type: should not use basic type string as key in context.WithValue (revive)
lint: internal/runtime/hostfunctions.go#L555
context-keys-type: should not use basic type string as key in context.WithValue (revive)
lint: internal/runtime/wazeroruntime.go#L191
error-return: error should be the last type when returning multiple items (revive)
lint: internal/runtime/wazeroruntime.go#L560
error-return: error should be the last type when returning multiple items (revive)
lint: internal/runtime/wazeroruntime.go#L78
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive)
lint: internal/runtime/wazeroruntime.go#L79
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive)
lint: internal/runtime/wazeroruntime.go#L80
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive)