Kempt is a new open source CLI tool designed to replace heavy Gradle-based formatters like Spotless. It provides a single entry point that delegates to language-specific formatters (Kotlin via ktfmt, Java via google-java-format, Rust via cargo fmt), handles license header insertion, trailing whitespace normalization, and integrates with git pre-commit hooks. Projects configure it via a .kempt.toml file and use the same tool locally, in pre-commit hooks, and in CI pipelines. In CI, kempt check runs in read-only mode and exits non-zero when files need formatting.

2m read timeFrom zacsweers.dev
Post cover image
26 Impressions