Commit 53c855e
chore: add pre-commit hook to auto-apply spotless formatting
Adds .githooks/pre-commit which runs `./gradlew spotlessApply` and
re-stages any reformatted files before each commit. Also adds an
`installGitHooks` Gradle task (run once after cloning) that sets
`core.hooksPath = .githooks` so git picks up the hook automatically.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9749c6e commit 53c855e
2 files changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
| |||
0 commit comments