#!/bin/bash
# Setup script to install git hooks via symlinks

echo "Installing git hooks..."

# Create symlinks from .git/hooks to docs/hooks
ln -sf ../../docs/hooks/pre-commit .git/hooks/pre-commit
ln -sf ../../docs/hooks/pre-push .git/hooks/pre-push

echo "✅ Git hooks installed successfully!"
echo ""
echo "Installed hooks (via symlinks):"
echo "  • pre-commit: Runs rubocop on staged files"
echo "  • pre-push: Runs brakeman + bundler-audit security scans"
echo ""
echo "See docs/GIT_HOOKS.md for more information."
