WASM: PoC #792
Annotations
9 errors and 3 warnings
lint:
internal/compiler/backend/golang/wasm/backend.go#L37
G204: Subprocess launched with a potential tainted input or cmd arguments (gosec)
|
lint:
cmd/cli/cli.go#L71
err113: do not define dynamic errors, use wrapped static errors instead: "fmt.Errorf(\"Unknown target %s\", s)" (goerr113)
|
lint:
internal/compiler/backend/golang/wasm/backend.go#L19
error returned from external package is unwrapped: sig: func (github.com/nevalang/neva/internal/compiler/backend/golang.Backend).Emit(dst string, prog *github.com/nevalang/neva/pkg/ir.Program) error (wrapcheck)
|
lint:
internal/compiler/backend/golang/wasm/backend.go#L25
error returned from external package is unwrapped: sig: func os.RemoveAll(path string) error (wrapcheck)
|
lint:
internal/compiler/backend/golang/wasm/backend.go#L35
error returned from external package is unwrapped: sig: func os.Chdir(dir string) error (wrapcheck)
|
lint:
internal/compiler/backend/golang/wasm/backend.go#L47
error returned from external package is unwrapped: sig: func (*os/exec.Cmd).Run() error (wrapcheck)
|
lint:
cmd/cli/cli.go#L89
error returned from external package is unwrapped: sig: func (github.com/nevalang/neva/internal/compiler.Compiler).Compile(src string, mainPkgName string, dstPath string) error (wrapcheck)
|
lint:
cmd/cli/cli.go#L93
error returned from external package is unwrapped: sig: func (github.com/nevalang/neva/internal/compiler.Compiler).Compile(src string, mainPkgName string, dstPath string) error (wrapcheck)
|
lint
issues found
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint:
internal/compiler/backend/golang/wasm/backend.go#L24
if-return: redundant if ...; err != nil check, just return error instead. (revive)
|