diff --git a/scripts/validate_architecture.py b/scripts/validate_architecture.py index 8217d385..61f886ba 100755 --- a/scripts/validate_architecture.py +++ b/scripts/validate_architecture.py @@ -2509,18 +2509,18 @@ class ArchitectureValidator: print("šŸ“Š ARCHITECTURE VALIDATION REPORT") print("=" * 80 + "\n") - print(f"Files checked: {self.result.files_checked}") - print(f"Total violations: {len(self.result.violations)}\n") - - # Print file summary table if we have file results - if self.result.file_results: - self._print_summary_table() - # Group by severity errors = [v for v in self.result.violations if v.severity == Severity.ERROR] warnings = [v for v in self.result.violations if v.severity == Severity.WARNING] infos = [v for v in self.result.violations if v.severity == Severity.INFO] + print(f"Files checked: {self.result.files_checked}") + print(f"Findings: {len(errors)} errors, {len(warnings)} warnings, {len(infos)} info\n") + + # Print file summary table if we have file results + if self.result.file_results: + self._print_summary_table() + if errors: print(f"\nāŒ ERRORS ({len(errors)}):") print("-" * 80) @@ -2542,14 +2542,14 @@ class ArchitectureValidator: # Summary print("\n" + "=" * 80) if self.result.has_errors(): - print("āŒ VALIDATION FAILED - Fix errors before committing") + print(f"āŒ VALIDATION FAILED - {len(errors)} error(s) must be fixed before committing") print("=" * 80) return 1 if self.result.has_warnings(): - print("āš ļø VALIDATION PASSED WITH WARNINGS") + print(f"āš ļø VALIDATION PASSED WITH {len(warnings)} WARNING(S)") print("=" * 80) return 0 - print("āœ… VALIDATION PASSED - No violations found") + print("āœ… VALIDATION PASSED") print("=" * 80) return 0