# JLLeitschuh/ktlint-gradle

A ktlint gradle plugin

Repository: https://github.com/JLLeitschuh/ktlint-gradle
Canonical: https://ross.abutalabs.com/products/ktlint-gradle
Language: Kotlin
License: MIT
License Family: permissive
Topics: gradle, kotlin, ktlint, linting, gradle-script-kotlin, gradle-plugin, hacktoberfest
Last push: 2026-08-09T06:43:59+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 62, longevity 100
- inputs: {"age_days": 3467, "days_push": 24, "days_rel": 174, "gap_med": 81, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1715, forks 184 (observed 2026-08-28T04:05:26.238560+00:00)

## What it is
A Gradle plugin that wraps the ktlint Kotlin linter, adding tasks to run style checks and auto-format Kotlin code. It activates automatically in projects with Kotlin plugins applied, including Android, multiplatform, and Kotlin script files.

## Use cases
- enforce kotlin code style in gradle builds
- auto-format kotlin source files
- lint kotlin android project
- add ktlint to multiplatform project
- generate lint reports for kotlin code
- set up ktlint baseline to ignore existing violations

## When to choose
- you use Gradle with any Kotlin plugin and want ktlint integration
- you want check and format tasks wired into your build
- you need baseline support or custom reporters for ktlint

## When to avoid
- your project does not use Gradle
- you prefer a different Kotlin linter or formatter like detekt or ktfmt
- you need linting for non-Kotlin languages

## Facets
- artifact type: plugin
- maturity: active
- function: linter, formatter, build-tool, developer-tools
- domain: developer-tools, programming-languages, web-development, mobile-development
- platform: jvm, cli
- tags: ktlint, gradle-plugin, code-style, kotlin-linting, static-analysis, gradle

## Member repositories
- JLLeitschuh/ktlint-gradle (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.238560+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-30T03:34:17.093192+00:00, confidence not recorded.
  - readme: https://github.com/JLLeitschuh/ktlint-gradle (fetched 2026-08-28T04:05:26.238560+00:00, sha f8d2d1fbd6ea)
- Data as of 2026-08-30T08:39:29.467469+00:00.
