The naming check was documented as an auto-running pre-commit hook, but .git/hooks is never cloned and no installer existed - a fresh clone had nothing, and the real enforcement is CI. Say that plainly. Ship .githooks/pre-commit (LF-pinned) so a dev who wants the local check can opt in with 'git config core.hooksPath .githooks'; CI stays the backstop that fails the build on a bad name.
6 lines
253 B
Bash
Executable File
6 lines
253 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Committed pre-commit hook. Activate per clone with:
|
|
# git config core.hooksPath .githooks
|
|
# Runs the naming/style gate; blocks the commit on failure.
|
|
exec bash "$(git rev-parse --show-toplevel)/scripts/check-naming-and-style.sh"
|