fleetlint Policy for a fleet of repositories
v0.7
Getting started

format/configured/kotlin

A formatter is configured

Implements format/configured for kotlin.

Severitywarning
Tiers1, 2
Stackskotlin
Scopeeach
Kindoutcome
Sourcelibrary v0.4.0
Selected byfleetlint-recommended@v0.4.0

Requirement

A formatter is wired into the Gradle build (this build, a parent build or a convention plugin): Spotless, ktlint or ktfmt, or one runs in a hook, the task runner or CI. Another formatter is added with accept:.

Why

Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.

Fix

Add Spotless with ktlint (or ktfmt) to the Gradle build and run spotlessCheck in the hooks.

Agent instruction: Add the Spotless Gradle plugin with ktlint() for Kotlin sources, spotlessCheck to the lint target and a hook; reformat in a separate commit.

Sources


Generated by fleetlint docs from catalog v0.4.0.