mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-03 15:43:31 +08:00
17 lines
467 B
Markdown
17 lines
467 B
Markdown
---
|
|
description: "Kotlin hooks extending common rules"
|
|
globs: ["**/*.kt", "**/*.kts", "**/build.gradle.kts"]
|
|
alwaysApply: false
|
|
---
|
|
# Kotlin Hooks
|
|
|
|
> This file extends the common hooks rule 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
|