Skip to content

Commit 9a62067

Browse files
author
Really Him
committed
ci: add self-check make command
1 parent d0973d2 commit 9a62067

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
102111
check-all: check metrics-quiet ## Run all checks including complexity metrics
103112

104113
clean: ## Clean up build artifacts and cache files

0 commit comments

Comments
 (0)