ktlint is a Kotlin linter in spirit of feross/standard (JavaScript) and gofmt (Go).
This is free and open source software.
Key Features
- No configuration required – aims to capture the Kotlin coding conventions and Android Kotlin Style Guide. In some aspects ktlint is a bit more strict.
- Built-in Rule sets.
- Built-in formatter – most lint violations don’t need to be fixed manually. ktlint has a built-in formatter which fixes violations when possible. Some violations can not be fixed in a deterministic way, and need manual action.
- .editorconfig support – primarily uses the .editorconfig file to read default .editorconfig, IntelliJ IDEA specific and Ktlint specific properties.
- Several built-in reporters: plain, json, html and checkstyle.
- Executable jar – released as a single executable jar with all dependencies included.
- Allows extension with custom rule sets and reporters.
Website: github.com/ktlint/ktlint
Support:
Developer: Pinterest, Inc.
License: MIT License
ktlint is written in Kotlin. Learn Kotlin with our recommended free books and free tutorials.
This article was contributed by a visitor who completed this form. Help the site by suggesting new open source software.
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.
| Kotlin Code Formatters | |
|---|---|
| ktlint | Kotlin linter with built-in formatter |
| Spotless | Keeps codebases pristine with automated formatting checks |
| ktfmt | Pretty-prints (formats) Kotlin code |
| ktlint-gradle | Runs ktlint from Gradle to enforce Kotlin style rules |
| Kotlinter Gradle | Plugin for linting and formatting |
| ktlint-gradle-plugin | Brings Kotlin linting and formatting checks into Gradle projects |
| ktfmt-gradle | Adds ktfmt formatting to Gradle builds with minimal fuss. |
| Kotlin Formatter | Formats Kotlin source with a simple, consistent command-line tool |
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.