Files
Claude-Code-Workflow/ccw/frontend/analyze-errors2.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

29 lines
1.3 KiB
PowerShell

Set-Location 'D:\Claude_dms3\ccw\frontend'
$output = npx tsc --noEmit 2>&1
$errorLines = $output | Select-String 'error TS'
Write-Host "=== NON-TS6133/TS1149/TS6196/TS6192 ERRORS (real issues) ==="
$real = $errorLines | Where-Object { $_.Line -notmatch 'TS6133' -and $_.Line -notmatch 'TS1149' -and $_.Line -notmatch 'TS6196' -and $_.Line -notmatch 'TS6192' }
Write-Host "Count: $($real.Count)"
Write-Host ""
Write-Host "=== GROUPED BY FILE ==="
$real | ForEach-Object {
($_.Line -split '\(')[0]
} | Group-Object | Sort-Object Count -Descending | Format-Table Name, Count -AutoSize
Write-Host "`n=== ROUTER.TSX ERRORS ==="
$errorLines | Where-Object { $_.Line -match 'src/router\.tsx' } | ForEach-Object { $_.Line }
Write-Host "`n=== STORES/INDEX.TS ERRORS ==="
$errorLines | Where-Object { $_.Line -match 'src/stores/index\.ts' } | ForEach-Object { $_.Line }
Write-Host "`n=== TYPES/INDEX.TS ERRORS ==="
$errorLines | Where-Object { $_.Line -match 'src/types/index\.ts' } | ForEach-Object { $_.Line }
Write-Host "`n=== SHARED/INDEX.TS ERRORS ==="
$errorLines | Where-Object { $_.Line -match 'src/components/shared/index\.ts' } | ForEach-Object { $_.Line }
Write-Host "`n=== HOOKS/INDEX.TS ERRORS ==="
$errorLines | Where-Object { $_.Line -match 'src/hooks/index\.ts' } | ForEach-Object { $_.Line }