(entries: [string, number | undefined][])
| 111 | const areas = new Map([...areaFiles].map(([area, members]) => [area, summarize(members)])); |
| 112 | const total = summarize([...files.values()]); |
| 113 | const largest = (entries: [string, number | undefined][]) => { |
| 114 | let result: { path: string; lines: number } | undefined; |
| 115 | for (const [path, lines] of entries) { |
| 116 | if (lines === undefined) continue; |
| 117 | if (!result || lines > result.lines || (lines === result.lines && compare(path, result.path) < 0)) result = { path, lines }; |
| 118 | } |
| 119 | return result; |
| 120 | }; |
| 121 | // Root-direct files remain truthful measurements, but the root platform is |
| 122 | // the visual baseline rather than a competing folder-size denominator. A |
| 123 | // nested area never outgrows the repository area that contains it. |
no test coverage detected