5096b0f4cc
Complete rewrite of output format: 1. PRIORITY FILES section: - Shows files with CRITICAL/HIGH issues sorted by count - Breaks down severity per file: "file.sh (CRITICAL: 2, HIGH: 5)" - Calculates coverage: "Fix top 3 files = 50% of issues" - Immediately answers: "Which files should I fix first?" 2. HIGH ISSUES grouped BY FILE: - Shows first 3 issues per file with line numbers - Displays total count: "file.sh (12 issues)" - Groups related issues together for batch fixing - Much easier to work through file-by-file 3. QUICK WINS section: - Shows patterns appearing 10+ times - Provides fix description for each pattern - Example: "15 × SOURCE - Add existence checks before sourcing" - Identifies opportunities to fix many issues at once 4. MEDIUM/LOW collapsed: - Single summary line (not pages of low-priority detail) - Provides grep command to view when needed Benefits for AI/human readers: - Answers "where do I start?" immediately - Groups issues by file (actionable context) - Shows impact (% coverage of top files) - Identifies patterns (fix 15 issues with one approach) - Reduces noise (no pages of MEDIUM/LOW details) - Clear hierarchy: PRIORITY → CRITICAL → HIGH → QUICK WINS Output is now optimized for taking action, not just reporting.