use wazero, and introduce an abstraction for the virtual macine #396
Annotations
5 errors and 11 warnings
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/wazeroruntime.go#L52
S1009: should omit nil check; len() for []byte is defined as zero (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
|
lint:
internal/api/testdb/memdb_iterator.go#L108
empty-block: this block is empty, you can remove it (revive)
|
lint:
internal/runtime/hostfunctions.go#L18
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#L115
unused-parameter: parameter 'env' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
internal/runtime/wazeroruntime.go#L78
error-return: error should be the last type when returning multiple items (revive)
|
lint:
internal/runtime/wazeroruntime.go#L37
unused-parameter: parameter 'config' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
internal/runtime/wazeroruntime.go#L42
unused-parameter: parameter 'handle' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
internal/runtime/wazeroruntime.go#L185
unused-parameter: parameter 'otherParams' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
internal/runtime/wazeroruntime.go#L189
unused-parameter: parameter 'otherParams' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
internal/runtime/wazeroruntime.go#L193
unused-parameter: parameter 'otherParams' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
internal/runtime/wazeroruntime.go#L197
unused-parameter: parameter 'migrateInfo' seems to be unused, consider removing or renaming it as _ (revive)
|