Commit 2ebdbe4
authored
chore: improve project consistency and add pre-commit hook (#1105)
## Summary
Address consistency issues identified during project review.
## Changes
- **Pre-commit hook**: Added `.git/hooks/pre-commit` that runs
`format.sh` and `build.sh` before commits (per AGENTS.md requirement)
- **clean.sh**: Now includes Main.Tests bin/obj/TestResults cleanup
- **km.sh**: Fixed shebang to use portable `/usr/bin/env bash`
- **KNOWN-ISSUES.md**: Documented 2 configuration limitations (hardcoded
index ID and index weights)
## Test plan
- [x] All 520 tests pass (306 Core + 214 Main)
- [x] Zero skipped tests
- [x] Code coverage at 83.82% (above 80% threshold)
- [x] `build.sh` passes with 0 warnings
- [x] `format.sh` passes
- [x] `coverage.sh` passes
- [x] Pre-commit hook runs successfully on commit
## Note
The pre-commit hook is created in `.git/hooks/` which is not tracked by
git. New clones will need to set up the hook.1 parent 58c9e47 commit 2ebdbe4
3 files changed
+37
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
87 | 117 | | |
88 | 118 | | |
89 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
0 commit comments