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

lint/kotlin-config

detekt is configured

Severitywarning
Tiersall
Stackskotlin
Scopeeach
Kindexpr
Sourcelibrary v0.0.0-20261011205826-ecb4e9b3ffd4
Selected byfleetlint-recommended@0.1.0

Requirement

detekt runs with a config enforcing EmptyCatchBlock, SwallowedException, LongMethod and complexity limits.

Why

Kotlin’s compiler accepts swallowed exceptions; detekt is where they are caught.

Check

exists("**/detekt*.yml") || exists("**/detekt*.yaml") || exists("config/detekt/*")

Fix

Add config/detekt/detekt.yml and the detekt Gradle plugin.

Agent instruction: Add the detekt Gradle plugin with buildUponDefaultConfig and a config/detekt/detekt.yml enabling the rules from the Kotlin stack profile.

fleetlint fix can apply this rule’s fix automatically (1 action(s)).


Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.