go-shellcheck

module
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2024 License: MIT

README

go-shellcheck

go-shellcheck is a distribution of shellcheck, that can be built with Go. It does not actually reimplement any functionality of shellcheck in Go, instead compiling it with the GHC WASI backend, and executing with the pure Go Wasm runtime wazero. This means that go install or go run can be used to execute it, with no need to rely on separate package managers such as pnpm, on any platform that Go supports.

Installation

Precompiled binaries are available in the releases. Alternatively, install the plugin you want using go install.

$ go install github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest

To avoid installation entirely, it can be convenient to use go run

$ go run github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest *.sh

Note that due to the sandboxing of the filesystem when using Wasm, currently only files that descend from the current directory when executing the tool are accessible to it, i.e., ../sql/my.sh or /separate/root/my.sh will not be found.

Directories

Path Synopsis
build module
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL