#!/bin/bash
# Check file placement
VIOLATIONS=$(git diff --cached --name-only --diff-filter=A | grep -E '^[^/]+\.md$' | grep -v -E '^(README\.md)$' || true)
if [ ! -z "$VIOLATIONS" ]; then
    echo "ERROR: .md files must go in docs/ subdirectory"
    exit 1
fi
echo "File placement: PASS"
