Files
everything-claude-code/rules/kotlin/hooks.md
2026-03-10 21:25:52 -07:00

18 lines
421 B
Markdown

---
paths:
- "**/*.kt"
- "**/*.kts"
- "**/build.gradle.kts"
---
# Kotlin Hooks
> This file extends [common/hooks.md](../common/hooks.md) with Kotlin-specific content.
## PostToolUse Hooks
Configure in `~/.claude/settings.json`:
- **ktfmt/ktlint**: Auto-format `.kt` and `.kts` files after edit
- **detekt**: Run static analysis after editing Kotlin files
- **./gradlew build**: Verify compilation after changes