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 Code Formatters | |
|---|---|
| ktlint | Kotlin linter with built-in formatter |
| ktfmt | Pretty-prints (formats) Kotlin code |
| Kotlinter Gradle | Plugin for linting and formatting |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |

