* Format files as a flat list
(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean)
| 8970 | * Format files as a flat list |
| 8971 | */ |
| 8972 | private formatFilesFlat(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean): string { |
| 8973 | const lines: string[] = [`**Files (${files.length})**`, '']; |
| 8974 | |
| 8975 | for (const file of files.sort((a, b) => a.path.localeCompare(b.path))) { |
| 8976 | if (includeMetadata) { |
| 8977 | lines.push(`- ${file.path} (${file.language}, ${file.nodeCount} symbols)`); |
| 8978 | } else { |
| 8979 | lines.push(`- ${file.path}`); |
| 8980 | } |
| 8981 | } |
| 8982 | |
| 8983 | return lines.join('\n'); |
| 8984 | } |
| 8985 | |
| 8986 | /** |
| 8987 | * Format files grouped by language |
no test coverage detected