You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/pre-commit.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,12 @@ Before running the checklist, run `git fetch origin`. If the current branch is b
3
3
Run the pre-commit checklist for this project:
4
4
5
5
1. Update `CHANGELOG.md``[Unreleased]` section — add an entry under the appropriate subsection (Added / Changed / Fixed / Removed) describing the changes made, referencing the issue number.
6
-
2. Run `./mvnw clean install` — must succeed with no compilation warnings and all tests passing.
7
-
3. Remind me to open `target/site/jacoco/index.html` to verify coverage after the build completes.
8
-
4. If Docker is running, run `docker compose build` — must succeed with no
6
+
2. Run `./mvnw clean install` — must succeed with no compilation warnings, all tests passing, and the JaCoCo check reporting `All coverage checks have been met.` (80% instruction and branch coverage enforced by the build).
7
+
3. If Docker is running, run `docker compose build` — must succeed with no
9
8
errors. Skip this step with a note if Docker Desktop is not running.
10
-
5. If `coderabbit` CLI is installed, run `coderabbit review --type uncommitted --prompt-only`:
9
+
4. If `coderabbit` CLI is installed, run `coderabbit review --type uncommitted --prompt-only`:
11
10
- If actionable/serious findings are reported, stop and address them before proposing the commit.
12
11
- If only nitpick-level findings, report them and continue to the commit proposal.
13
12
- If `coderabbit` is not installed, skip this step with a note.
14
13
15
-
Run steps 1–4, report the results clearly, then run step 5 (CodeRabbit review) if available, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat``fix``chore``docs``test``refactor``ci``perf`). Do not create the branch or commit until I explicitly confirm.
14
+
Run steps 1–3, report the results clearly, then run step 4 (CodeRabbit review) if available, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat``fix``chore``docs``test``refactor``ci``perf`). Do not create the branch or commit until I explicitly confirm.
0 commit comments