Installation
alint ships as a single static Rust binary — no runtime, no JVM, nothing else to install. Pick whichever path matches your environment.
install.sh (Linux + macOS + Windows tarballs)
Section titled “install.sh (Linux + macOS + Windows tarballs)”curl -sSL https://raw.githubusercontent.com/asamarts/alint/main/install.sh | bashDetects platform (Linux / macOS, x86_64 / aarch64), downloads the matching tarball from GitHub Releases, verifies the SHA-256, and installs to $INSTALL_DIR (default ~/.local/bin). Windows users download the Windows tarball from the Releases page directly.
Homebrew (macOS + Linuxbrew)
Section titled “Homebrew (macOS + Linuxbrew)”brew tap asamarts/alintbrew install alintThe asamarts/homebrew-alint tap is auto-updated on every release. The formula resolves the matching pre-built tarball for your platform, verifies its SHA-256, and installs to the Homebrew cellar.
Docker
Section titled “Docker”A distroless multi-arch image (linux/amd64, linux/arm64) is published to ghcr.io on each release:
# Lint the current directory:docker run --rm -v "$PWD:/repo" ghcr.io/asamarts/alint:latest
# Pin to an exact version:docker run --rm -v "$PWD:/repo" ghcr.io/asamarts/alint:v0.9.20 checkThe image runs as the distroless nonroot user (UID 65532); host files must be world-readable. To apply fixes and preserve host ownership, pass -u:
docker run --rm -u $(id -u):$(id -g) -v "$PWD:/repo" ghcr.io/asamarts/alint:latest fixAlso published: :<major>.<minor> (e.g. :0.9) and the raw git tag (:v0.9.20).
crates.io
Section titled “crates.io”cargo install alintBuilds from source against the current stable Rust toolchain. Requires cargo already on $PATH.
From source
Section titled “From source”git clone https://github.com/asamarts/alintcd alintcargo build --release -p alint./target/release/alint --helpUseful when you want to track main between releases or are contributing patches.
Verify the install
Section titled “Verify the install”alint --versionShould print alint <version> matching the channel you installed from.