# ktlint/ktlint

An anti-bikeshedding Kotlin linter with built-in formatter

Repository: https://github.com/ktlint/ktlint
Canonical: https://ross.abutalabs.com/products/ktlint
Homepage: https://ktlint.github.io/ktlint/
Language: Kotlin
License: MIT
License Family: permissive
Topics: kotlin, lint, linter
Last push: 2026-08-22T14:51:32+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 44, longevity 100
- inputs: {"age_days": 3689, "days_push": 11, "days_rel": 292, "gap_med": 42.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6735, forks 525 (observed 2026-08-28T04:09:48.191227+00:00)

## What it is
Ktlint is an opinionated Kotlin linter with a built-in formatter that enforces a standard code style without configuration. It supports .editorconfig, multiple report formats, and custom rule sets.

## Use cases
- lint kotlin code
- auto-format kotlin files
- enforce consistent code style in kotlin projects
- check kotlin style in CI
- fix style violations automatically

## When to choose
- you want zero-config Kotlin style enforcement
- you need automatic fixing of style violations
- you want .editorconfig support and CI-friendly reporters

## When to avoid
- you need highly customizable lint rules with fine-grained configuration
- you lint languages other than Kotlin

## Facets
- artifact type: cli-tool
- maturity: active
- function: linter, formatter, cli, developer-tools
- domain: developer-tools, programming-languages
- platform: jvm, cli, cross-platform
- tags: kotlin, code-style, static-analysis, editorconfig, autocorrect, command-line

## Member repositories
- ktlint/ktlint (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:48.191227+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:42:47.913805+00:00, confidence not recorded.
  - readme: https://github.com/ktlint/ktlint (fetched 2026-08-28T04:09:48.191227+00:00, sha c4b62ea07d49)
  - homepage: https://ktlint.github.io/ktlint/ (fetched 2026-08-29T08:38:43.334474+00:00, sha 36c6c3c2e4f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
