# detekt

Check Kotlin complexity and code smells

Enable rules appropriate for the Kotlin modules in scope. Track complexity and potential defects with the committed Gradle configuration.

Category: Code quality
Languages: Kotlin

## Standard evidence

Rubric v1 · 2/8 verified · 6 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — The CyclomaticComplexMethod rule names which Kotlin control constructs add to the complexity count and defines a configurable maximum per method. Reviewed 2026-11-28. [Source](https://detekt.dev/docs/rules/complexity/#cyclomaticcomplexmethod)
- **Measurement** (verified) — The rule measures independent paths per method against allowedComplexity. A finding means that method exceeded the configured maximum. Reviewed 2026-11-28. [Source](https://detekt.dev/docs/rules/complexity/#cyclomaticcomplexmethod)
- **Conformance** (unknown) — No reviewed evidence is recorded for this dimension.
- **CI enforcement** (unknown) — No reviewed evidence is recorded for this dimension.
- **Getting started** (unknown) — No reviewed evidence is recorded for this dimension.
- **Real-world adoption** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent guidance** (unknown) — No reviewed evidence is recorded for this dimension.
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

Use detekt in this repository to meet this standard: Check Kotlin complexity and code smells. Enable rules appropriate for the Kotlin modules in scope. Track complexity and potential defects with the committed Gradle configuration. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.

### Tool command

```
./gradlew detekt
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://detekt.dev/)
- [Agent skill](/skills/detekt/SKILL.md)
