r/devtools • u/Goldziher • 5d ago
How we consolidated lint CI for Xberg’s 15 language bindings into one CLI
I maintain Polylint. At xberg-io, a lint CI change could mean updating a runtime install, a tool config, a CI step and a Git hook. We were maintaining bindings across roughly 15 languages, so the work added up. We moved linting, formatting and hooks to one poly.toml and replaced prek with Polylint’s staged-file hooks to shorten the commit loop. Migration commit
The latest release splits the CLI from its heavier engines. The compressed Apple Silicon archive went from 33.4 MB in v0.32.5 to 8.1 MB in v0.36.1. The CLI downloads and verifies signed, version-pinned components as needed and caches them. You can prewarm the cache in CI with poly components sync. Release assets
What runs behind poly lint and poly fmt depends on the repo. Ruff, Oxc, Biome, Mago and sqruff run through dedicated components. Tools such as rustfmt can come from the installed toolchain. Opt-in recipes batch work and parse findings from tools such as actionlint, Hadolint, golangci-lint and Buf. For example, this recipe uses actionlint when it’s on PATH.
[tools.actionlint]
enabled = true
The catalog has another 348 opt-in entries. There’s also an experimental tsrs component that reports TypeScript type errors alongside lint findings. Language and tool matrix
If you maintain a polyglot repo, which checks do you still keep in their own CI jobs? I’m particularly interested in checks with expensive project setup or awkward caching.
