fix(report): Apply 5 critical report quality fixes to correct files#53
Merged
Conversation
This commit fixes 5 critical bugs that were previously applied to the wrong file (java-tool-parser.ts which is unused). All fixes now applied to actual running code. ROOT CAUSE: Previous fixes (commit 9b017a8) were applied to java-tool-parser.ts, a duplicate file that is never imported or used. The actual running code is in java-tool-orchestrator.ts. This caused all "fixes" to be dormant/ineffective. FIXES APPLIED: 1. **Checkstyle Severity** (BUG #1) - File: java-tool-orchestrator.ts (lines 698-722) - Issue: LineLengthCheck and other style issues showing as "High Priority" - Fix: Changed mapCheckstyleSeverity() to always return 'low' - Rationale: Checkstyle checks code style (line length, Javadoc, naming) with NO runtime impact - all should be low severity - Impact: 1000+ issues moved from blocking to non-blocking 2. **Greeting** (BUG #2) - Files: metadata-footer.ts (line 238), v9-report-formatter.ts (line 1535) - Issue: Time-based greeting "Good afternoon" wrong when read later - Fix: Changed getPersonalizedGreeting() to return neutral "Hi" - Rationale: Reports read at unpredictable times 3. **Agent Performance Model Column** (BUG #3) - File: metadata-footer.ts (lines 81-106) - Issue: Model column showing "N/A" for all agents - Fix: Extract model from agent.modelUsed.model || agent.model || agent.modelName - Also fixed: Model as 2nd column (after Agent name), FREE for zero cost 4. **Dependency-check Files Scanned** (BUG #4) - File: java-tool-orchestrator.ts (lines 657-667) - Issue: Files Scanned showing "N/A" when 0 CVEs found - Fix: Count all dependencies from depCheckResult.dependencies.length - Rationale: Tool scans ALL dependencies regardless of CVE findings 5. **Test Type Safety** (BUG #5) - File: test-v9-lite-e2e.ts (lines 194-223) - Issue: TypeError: rule.toLowerCase is not a function - Fix: Added typeof checks before .toLowerCase(), convert all rules to strings - Rationale: Some tools return non-string rule identifiers CLEANUP: - Removed duplicate file: java-tool-parser.ts (unused, contained dormant fixes) FINANCIAL COST: Already has autofix adjustment logic (v9-grouped-report-formatter.ts lines 3155-3187). With checkstyle fix, cost automatically reduced since low severity issues excluded from blocker calculation. USER IMPACT: - Checkstyle issues no longer block PRs (moved to low severity) - Financial cost accurate (~68% reduction for auto-fixable issues) - Agent Performance shows actual models used - Dependency-check shows actual scan count - Greeting always appropriate regardless of read time 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The java-tool-parser.ts file was removed as it was a duplicate/unused file,
but the imports in parsers/index.ts were not updated. This caused build failures.
Removed:
- export { default as JavaToolParser } from './java-tool-parser';
- export type { JavaIssue, JavaToolResult } from './java-tool-parser';
The actual Java tool parsing is handled by JavaToolOrchestrator, not a separate parser.
Fixes CI build error: TS2307 Cannot find module './java-tool-parser'
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit fixes 5 critical bugs that were previously applied to the wrong file (java-tool-parser.ts which is unused). All fixes now applied to actual running code.
ROOT CAUSE: Previous fixes (commit 9b017a8) were applied to java-tool-parser.ts, a duplicate file that is never imported or used. The actual running code is in java-tool-orchestrator.ts. This caused all "fixes" to be dormant/ineffective.
FIXES APPLIED:
Checkstyle Severity (BUG Clean up initiation #1)
Greeting (BUG Agent eval system clean #2)
Agent Performance Model Column (BUG Predeplyment #3)
Dependency-check Files Scanned (BUG Clean push candidate #4)
Test Type Safety (BUG Feature/deepwiki openrouter fresh implementation #5)
CLEANUP:
FINANCIAL COST: Already has autofix adjustment logic (v9-grouped-report-formatter.ts lines 3155-3187). With checkstyle fix, cost automatically reduced since low severity issues excluded from blocker calculation.
USER IMPACT:
🤖 Generated with Claude Code