pinterest/ktlint

An anti-bikeshedding Kotlin linter with built-in formatter

6,742

stars

2,728

commits

Kotlin

primary language

Sep 9, 2026

updated

ktlint.github.io/ktlint/
kotlin
lint
linter
Browse cluster: Linting and code quality tools

README

Ktlint logo with tag line 'An anti-bikeshedding Kotlin linter with built-in formatter.

Join the chat at https://kotlinlang.slack.com Build status Maven Central JitPack HomeBrew License ktlint

Kotlin linter in spirit of standard/standard (JavaScript) and gofmt (Go).

Key features

  • No configuration required
  • Built-in Rule sets
  • Built-in formatter
  • .editorconfig support
  • Several built-in reporters: plain, json, html and checkstyle
  • Executable jar and native binaries
  • Allows extension with custom rule sets and reporters

Quick start

Follow steps below for a quick start with latest ktlint release.

Documentation

User guide

This project is no longer affiliated with Pinterest and is not affiliated with nor endorsed by JetBrains. All code, unless specified otherwise, is licensed under the MIT license.
Copyright (c) 2026 Ktlint
Copyright (c) 2019-2026 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.

Contributors

(top 30 of 169)

paul-dingemans

1,022 commits

shyiko

492 commits

renovate[bot]

312 commits

shashachu

223 commits

pinterest/ktlint

An anti-bikeshedding Kotlin linter with built-in formatter

6,742

stars

2,728

commits

Kotlin

primary language

Sep 9, 2026

updated

ktlint.github.io/ktlint/
kotlin
lint
linter
Browse cluster: Linting and code quality tools

README

Ktlint logo with tag line 'An anti-bikeshedding Kotlin linter with built-in formatter.

Join the chat at https://kotlinlang.slack.com Build status Maven Central JitPack HomeBrew License ktlint

Kotlin linter in spirit of standard/standard (JavaScript) and gofmt (Go).

Key features

  • No configuration required
  • Built-in Rule sets
  • Built-in formatter
  • .editorconfig support
  • Several built-in reporters: plain, json, html and checkstyle
  • Executable jar and native binaries
  • Allows extension with custom rule sets and reporters

Quick start

Follow steps below for a quick start with latest ktlint release.

Documentation

User guide

This project is no longer affiliated with Pinterest and is not affiliated with nor endorsed by JetBrains. All code, unless specified otherwise, is licensed under the MIT license.
Copyright (c) 2026 Ktlint
Copyright (c) 2019-2026 Pinterest, Inc.
Copyright (c) 2016-2019 Stanley Shyiko.

Contributors

(top 30 of 169)

paul-dingemans

1,022 commits

shyiko

492 commits

renovate[bot]

312 commits

shashachu

223 commits

Languages

Kotlin

99.9%