This commit is contained in:
2026-07-09 02:59:53 +03:00
commit 7ace048d94
817 changed files with 234289 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
REPO_ROOT=$(git rev-parse --show-toplevel)
SCRIPT="${REPO_ROOT}/.githooks/generate_semantic_report.py"
REPORT="${REPO_ROOT}/logs/semantic_impact_report.txt"
if [ -f "$SCRIPT" ]; then
cd "$REPO_ROOT"
echo ""
echo "🔍 SEMANTIK ETKI RAPORU (commit sonrasi):"
echo "─────────────────────────────────────────────"
python3 "$SCRIPT" --mode last | tee "$REPORT"
RESULT=${PIPESTATUS[0]}
if [ $RESULT -ne 0 ]; then
echo ""
echo "⚠️ Yukarida BLOKE EDIEN risk seviyesi tespit edildi. Commit tamamlanmistir;"
echo " ama ilgili modüllerin doğru çalışıp çalışmadığını `cargo check --workspace` ile kontrol edin."
echo ""
fi
fi
exit 0