* Format files as a flat list
(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean)
| 8944 | * Format files as a flat list |
| 8945 | */ |
| 8946 | private formatFilesFlat(files: { path: string; language: string; nodeCount: number }[], includeMetadata: boolean): string { |
| 8947 | const lines: string[] = [`**Files (${files.length})**`, '']; |
| 8948 | |
| 8949 | for (const file of files.sort((a, b) => a.path.localeCompare(b.path))) { |
| 8950 | if (includeMetadata) { |
| 8951 | lines.push(`- ${file.path} (${file.language}, ${file.nodeCount} symbols)`); |
| 8952 | } else { |
| 8953 | lines.push(`- ${file.path}`); |
| 8954 | } |
| 8955 | } |
| 8956 | |
| 8957 | return lines.join('\n'); |
| 8958 | } |
| 8959 | |
| 8960 | /** |
| 8961 | * Format files grouped by language |
no test coverage detected