shyiko/ktlint

An anti-bikeshedding Kotlin linter with built-in formatter

Kotlin

6,747

2,751 commits

updated Sep 28, 2026

See the code

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.

kotlin
lint
linter

shyiko/ktlint

An anti-bikeshedding Kotlin linter with built-in formatter

Kotlin

6,747

2,751 commits

updated Sep 28, 2026

See the code

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.

kotlin
lint
linter

Languages

Kotlin

99.9%