Git Pre-commit Hook
Create.git/hooks/pre-commit:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Set up pre-commit hooks for automatic privacy scanning
.git/hooks/pre-commit:
#!/bin/sh
echo "🔍 Running KafkaCode privacy scan..."
kafkacode scan ./src
if [ $? -ne 0 ]; then
echo "❌ Privacy issues detected. Commit aborted."
echo "Run 'kafkacode scan ./src --verbose' for details"
exit 1
fi
echo "✅ Privacy scan passed"
exit 0
chmod +x .git/hooks/pre-commit
npm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "kafkacode scan ./src"
