Back to Everything Claude Code

Kotlin Hooks

.cursor/rules/kotlin-hooks.md

1.10.0334 B
Original Source

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