ktlint-gradle is a Gradle plugin that integrates ktlint with Kotlin projects, creating tasks for checking code style and automatically formatting source files.
It’s designed for Gradle builds that use Kotlin, including Android and multiplatform projects, and gives teams a straightforward way to enforce consistent Kotlin formatting as part of local development or continuous integration workflows.
This is free and open source software.
Key Features
- Creates Gradle tasks for running ktlint checks and automatic code formatting.
- Supports Kotlin, Kotlin Android, Kotlin Multiplatform, Kotlin script, and Kotlin JS projects.
- Can be applied across subprojects for multi-module Gradle builds.
- Supports baselines for gradually introducing linting to existing projects.
- Offers configurable reporting, filtering, custom rulesets, and ktlint version selection.
Website: github.com/jlleitschuh/ktlint-gradle
Support:
Developer: Jonathan Leitschuh
License: MIT License
ktlint-gradle is written in Kotlin. Learn Kotlin with our recommended free books and free tutorials.
Related Software
| Kotlin Linters | |
|---|---|
| ktlint | Kotlin linter with built-in formatter |
| detekt | Static code analysis for Kotlin |
| Konsist | Static code analyzer tailored for Kotlin |
| Ktlint Gradle | Gradle plugin that wires ktlint formatting into builds |
| Kotlinter Gradle | Plugin for linting and formatting |
| faire-detekt-rules | Opinionated detekt rules for cleaner, safer Kotlin code |
| Compose Rules | Static analysis checks that tighten Jetpack Compose quality |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.