Files
Claude-Code-Workflow/ccw/frontend/analyze-errors.ps1
catlog22 ba5f4eba84 feat: Implement dynamic test-fix execution phase with adaptive task generation
- Added Phase 2: Test-Cycle Execution documentation outlining the process for dynamic test-fix execution, including agent roles, core responsibilities, intelligent strategy engine, and progressive testing.
- Introduced new PowerShell scripts for analyzing TypeScript errors, focusing on error categorization and reporting.
- Created end-to-end tests for the Help Page, ensuring content visibility, documentation navigation, internationalization support, and accessibility compliance.
2026-02-07 17:01:30 +08:00

20 lines
856 B
PowerShell

Set-Location 'D:\Claude_dms3\ccw\frontend'
$output = npx tsc --noEmit 2>&1
$errorLines = $output | Select-String 'error TS'
Write-Host "=== TOTAL ERRORS ==="
Write-Host $errorLines.Count
Write-Host "`n=== BY ERROR CODE ==="
$errorLines | ForEach-Object {
if ($_.Line -match 'error (TS\d+)') { $Matches[1] }
} | Group-Object | Sort-Object Count -Descending | Select-Object -First 15 | Format-Table Name, Count -AutoSize
Write-Host "`n=== BY FILE (top 25) ==="
$errorLines | ForEach-Object {
($_.Line -split '\(')[0]
} | Group-Object | Sort-Object Count -Descending | Select-Object -First 25 | Format-Table Name, Count -AutoSize
Write-Host "`n=== NON-TS6133 ERRORS (real issues, not unused vars) ==="
$errorLines | Where-Object { $_.Line -notmatch 'TS6133' -and $_.Line -notmatch 'TS1149' } | ForEach-Object { $_.Line } | Select-Object -First 60