lint/kotlin-config
detekt is configured
| Severity | warning |
| Tiers | all |
| Stacks | kotlin |
| Scope | each |
| Kind | expr |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-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.