mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-31 06:03:29 +08:00
Adds Java language rules (coding-style, hooks, patterns, security, testing) following the established language rule conventions.
19 lines
467 B
Markdown
19 lines
467 B
Markdown
---
|
|
paths:
|
|
- "**/*.java"
|
|
- "**/pom.xml"
|
|
- "**/build.gradle"
|
|
- "**/build.gradle.kts"
|
|
---
|
|
# Java Hooks
|
|
|
|
> This file extends [common/hooks.md](../common/hooks.md) with Java-specific content.
|
|
|
|
## PostToolUse Hooks
|
|
|
|
Configure in `~/.claude/settings.json`:
|
|
|
|
- **google-java-format**: Auto-format `.java` files after edit
|
|
- **checkstyle**: Run style checks after editing Java files
|
|
- **./mvnw compile** or **./gradlew compileJava**: Verify compilation after changes
|