Coding

ktlint – Kotlin linter with built-in formatter

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/pinterest/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
ktlintKotlin linter with built-in formatter
detektStatic code analysis for Kotlin
KonsistStatic code analyzer tailored for Kotlin
Kotlinter GradlePlugin for linting and formatting

Read our verdict in the software roundup.

Kotlin Code Formatters
ktlintKotlin linter with built-in formatter
ktfmtPretty-prints (formats) Kotlin code
Kotlinter GradlePlugin for linting and formatting

Read our verdict in the software roundup.


Best Free and Open Source Software 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.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments