1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh # Pre-commit hook to ensure code quality before committing echo "🔍 Running pre-commit validation..." # Run validation checks (format and lint) make validate if [ $? -ne 0 ]; then echo "❌ Pre-commit validation failed. Please fix the issues before committing." exit 1 fi echo "✅ Pre-commit validation passed!" exit 0