File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,15 @@ metrics-report: install ## Generate detailed metrics report with statistics
9999 @echo " "
100100 @$(VENV_DIR ) /bin/antipasta metrics -d src/ -q > /dev/null 2>&1 && echo " ✅ PASS: All metrics within thresholds" || echo " ❌ FAIL: $( shell $( VENV_DIR) /bin/antipasta metrics -d src/ -q 2>&1 | grep -c ' ^❌' ) violations found"
101101
102+ self-check : install # # Run antipasta on its own source code
103+ @echo " ════════════════════════════════════════════════════════"
104+ @echo " ANTIPASTA SELF-CHECK"
105+ @echo " ════════════════════════════════════════════════════════"
106+ @echo " "
107+ @$(VENV_DIR ) /bin/antipasta metrics -d src/antipasta || (echo " " ; echo " ⚠️ Some violations detected. Consider refactoring complex code." ; exit 1)
108+ @echo " "
109+ @echo " ✅ All complexity checks passed!"
110+
102111check-all : check metrics-quiet # # Run all checks including complexity metrics
103112
104113clean : # # Clean up build artifacts and cache files
You can’t perform that action at this time.
0 commit comments