#!/bin/sh
# Blocks a commit that breaks the project layout (rules: Tools/hygiene_rules.json).
# Installed with: git config core.hooksPath Tools/git-hooks
node Tools/check_hygiene.mjs --errors || {
  echo "커밋 중단: 위 정리 규칙 위반을 고친 뒤 다시 커밋하세요. (규칙: Tools/hygiene_rules.json)"
  exit 1
}
