MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / samplePaths

Function samplePaths

src/bin/codegraph.ts:1202–1204  ·  view source on GitHub ↗

Up to three of `paths`, and how many more there are.

(paths: string[])

Source from the content-addressed store, hash-verified

1200
1201/** Up to three of `paths`, and how many more there are. */
1202function samplePaths(paths: string[]): string {
1203 return paths.slice(0, 3).join(', ') + (paths.length > 3 ? ` (+${formatNumber(paths.length - 3)} more)` : '');
1204}
1205
1206/**
1207 * The `status` warnings for indexed files whose symbols are missing although

Callers 2

mainFunction · 0.85

Calls 2

formatNumberFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected