Skip to content

Commit 1232f6b

Browse files
alpslaclaude
andcommitted
fix(report): Fix conflicting auto-fix counts (63 vs 136)
BUG #4 FIX: Use autoFixableCount instead of totalFixable in footer ISSUE: - Report showed "Auto-fixable: 63/136 issues" but footer showed "Total: 136" - Line 4000 used wrong variable (totalFixable instead of autoFixableCount) ROOT CAUSE: - totalFixable = ALL issues from IDE fix files - autoFixableCount = ONLY auto-fixable issues (calculated at line 3988) FIX: - Line 4002: Changed totalFixable → autoFixableCount in footer - Now both counts match correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9956bce commit 1232f6b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/agents/src/two-branch/analyzers/v9-grouped-report-formatter.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3996,8 +3996,10 @@ ${blocking.length > 5 ? `\n... and ${blocking.length - 5} more` : ''}` : '###
39963996
const highCount = issueFiles.filter(f => f.content.severity === 'high').reduce((sum, f) => sum + (f.content.metadata?.total_occurrences || 0), 0);
39973997
const mediumCount = issueFiles.filter(f => f.content.severity === 'medium').reduce((sum, f) => sum + (f.content.metadata?.total_occurrences || 0), 0);
39983998
const lowCount = issueFiles.filter(f => f.content.severity === 'low').reduce((sum, f) => sum + (f.content.metadata?.total_occurrences || 0), 0);
3999-
4000-
footer += `**Total auto-fixable issues**: ${totalFixable.toLocaleString()}\n`;
3999+
4000+
// AUTO-FIX COUNT BUG FIX (2025-10-30): Use autoFixableCount (not totalFixable)
4001+
// totalFixable includes ALL issues, autoFixableCount includes ONLY auto-fixable ones
4002+
footer += `**Total auto-fixable issues**: ${autoFixableCount.toLocaleString()}\n`;
40014003
footer += `- 🔴 Critical: ${criticalCount} (embedded, instant access)\n`;
40024004
if (highCount > 0) footer += `- 🟠 High: ${highCount} (lazy loaded after critical)\n`;
40034005
if (mediumCount > 0) footer += `- 🟡 Medium: ${mediumCount} (lazy loaded after high)\n`;

0 commit comments

Comments
 (0)