Phase 6: Pre-commit hook validates formatting locally #17

Merged
mprihoda merged 3 commits from SUPP-9-phase-06 into SUPP-9 2026-01-30 12:17:31 +00:00
mprihoda commented 2026-01-30 12:17:23 +00:00 (Migrated from github.com)

Phase 6: Pre-commit hook validates formatting locally

Goals: Provide fast local feedback on Scala formatting before commits

Scenarios: 6 verified
Tests: Script validation and manual testing

Full review packet

Changes

  • Add .git-hooks/pre-commit script for formatting validation
  • Exit early (success) when no Scala files are staged
  • Show clear error message with fix instructions when formatting fails
  • Document bypass option (--no-verify) for emergencies

Usage

ln -s ../../.git-hooks/pre-commit .git/hooks/pre-commit

🤖 Generated with Claude Code

## Phase 6: Pre-commit hook validates formatting locally **Goals**: Provide fast local feedback on Scala formatting before commits **Scenarios**: 6 verified **Tests**: Script validation and manual testing [Full review packet](https://github.com/iterative-works/support/blob/SUPP-9-phase-06/project-management/issues/SUPP-9/review-packet-phase-06.md) ### Changes - Add `.git-hooks/pre-commit` script for formatting validation - Exit early (success) when no Scala files are staged - Show clear error message with fix instructions when formatting fails - Document bypass option (`--no-verify`) for emergencies ### Usage ```bash ln -s ../../.git-hooks/pre-commit .git/hooks/pre-commit ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.