Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .claude/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"if": "Bash(git commit *)",
"command": "output=$(cd \"$CLAUDE_PROJECT_DIR\" && ./gradlew compileJava spotlessCheck checkstyleMain checkstyleTest checkstyleIntTest pmdMain pmdTest pmdIntTest 2>&1); code=$?; if [ $code -ne 0 ]; then reason=$(printf '%s' \"$output\" | tail -150); jq -n --arg reason \"$reason\" '{hookSpecificOutput:{hookEventName:\"PreToolUse\",permissionDecision:\"deny\",permissionDecisionReason:(\"Pre-commit Gradle checks failed (compileJava, spotlessCheck, checkstyle*, pmd*):\\n\\n\" + $reason)}}'; else echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"allow\"}}'; fi",
"timeout": 180,
"statusMessage": "Running compile, format check, Checkstyle, PMD before commit..."
}
]
}
]
}
}
9 changes: 9 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,12 @@ src/int-test — integration tests, run by `intTest`, not part of `test`
- Formatting via Spotless + google-java-format — run `spotlessApply`, don't hand-format
- Coverage gate requires 80% line / 70% branch, combined across unit + integration tests
- PRs must list Jira story keys per `.github/pull_request_template.md`

## Recommended Claude Code plugins
```
/plugin marketplace add stride-nyc/stride-plugins-official
/plugin install pdca-framework@stride-plugins-official
/plugin install afb-tdd@stride-plugins-official

/plugin install superpowers@claude-plugins-official
```
Loading