(files: string[], tool: 'biome' | 'typescript')
| 133 | |
| 134 | // Filter files for specific tools |
| 135 | function filterFilesForTool(files: string[], tool: 'biome' | 'typescript'): string[] { |
| 136 | return files.filter(file => { |
| 137 | if (!file || !file.trim()) return false; |
| 138 | |
| 139 | if (tool === 'biome') { |
| 140 | return file.match(/\.(ts|tsx|js|jsx|json)$/); |
| 141 | } |
| 142 | |
| 143 | if (tool === 'typescript') { |
| 144 | return file.match(/\.(ts|tsx)$/); |
| 145 | } |
| 146 | |
| 147 | return false; |
| 148 | }); |
| 149 | } |
| 150 | |
| 151 | // Parse TypeScript errors and filter by file paths |
| 152 | function parseAndFilterTSErrors(tsOutput: string, filesToShow: string[]): { filteredErrors: string[], totalErrors: number, filteredCount: number } { |
no outgoing calls
no test coverage detected
searching dependent graphs…