polylint
One linter and formatter for every language in your repository.
polylint is a small binary, poly, driven by one poly.toml. It fetches the engine each language in your
repository needs — ruff, oxc, biome, mago, sqruff and more, as signed, checksum-verified components — uses the
canonical tools you already have (rustfmt, gofmt, shellcheck), and runs ecosystem linters such as
golangci-lint, hadolint, actionlint and buf as built-in recipes. Everything reports through one format, one exit
code and one cache.
40+ languages and file formats with a dedicated tool · tree-sitter formatting for 300+ more · git hooks and
commit linting · monorepo-aware config · MCP server and agent plugins

How it works · Quick start · Languages ·
Why polylint · Install · Docs
How it works
flowchart LR
R["your repository"] --> C["poly core<br/>discover · plan · cache · hooks"]
C -->|"per language, on demand"| K["signed components<br/>ruff · oxc · biome · mago · sqruff · rubyfmt · shfmt …"]
C -->|"if installed"| H["host tools<br/>rustfmt · gofmt · shellcheck · zig fmt …"]
C -->|"opt-in"| P["recipes<br/>golangci-lint · hadolint · buf · checkstyle …"]
C -->|"everything else"| T["tree-sitter tier<br/>300+ grammars"]
K & H & P & T --> O["one report · one exit code<br/>pretty · JSON · TOON · MCP"]
- Components — the engines (Rust crates, plus a Go sidecar for shell and Go), signed and pinned to your poly version,
downloaded once per language and cached. No Python, Node or Ruby runtime is needed for them. A needed component
that cannot be installed is exit
2 (or a counted skip, if you ask for that), never a silent downgrade.
- Host tools — a language's canonical CLI when it is on
PATH: rustfmt, gofmt and shellcheck on by
default, zig fmt, google-java-format, ktfmt, swift-format, dart format, gleam format and styler
opt-in. Absent, the language falls through to tree-sitter formatting with a notice.
- Recipes — ecosystem tools enabled with
[tools.<name>], run batched, with findings parsed per line. Most can
download a checksummed release (install = "auto"); tools that need the JVM, Node or Python use the runtime
already on your machine. polylint never bundles a runtime.
- Tree-sitter tier — best-effort formatting for languages with nothing better. Grammars are fetched on demand.
- On every language — a code-quality metrics engine and a 42-rule ast-grep pack, at warning severity.
- Never silent — a file nothing could check is counted and named;
--deny-skips makes that a CI failure.
Files are discovered once (respecting .gitignore) and processed in parallel. The result cache is keyed by file
bytes, engine, engine version and resolved config, so an upgrade or a config change invalidates exactly what it
affects. --debug prints per-file engine timing and cache hits, and --timings prints per-phase wall time and a
per-engine table. -j N sizes the worker pool, and POLY_JOBS=N caps it — and the sum of the pools a process
runs for overlapping rooted runs — without a config change.
Quick start
curl -fsSL https://raw.githubusercontent.com/polylint/polylint/main/install.sh | sh
poly lint # lint everything; the first run fetches the engines this repository needs
poly fmt --fix # format everything
poly hooks install # run both on every commit, without pre-commit or lefthook
The first poly lint downloads the components for the languages it finds (for a Python and TypeScript repository,
python and web among them), verifies each against the signed lock embedded in the binary, and caches it. Later
runs use the cache. The Linux musl build has every engine linked in and downloads nothing; see
Installation.
$ poly lint
./app.py
warning ruff T201 5:5 `print` found
warning ruff ANN201 4:5 Missing return type annotation for public function `main`
error ruff F401 1:8 `os` imported but unused
3 issues found.
2 files linted
1 issue fixable with the `--fix` option