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

Function samplePaths

src/bin/codegraph.ts:1130–1132  ·  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

1128
1129/** Up to three of `paths`, and how many more there are. */
1130function samplePaths(paths: string[]): string {
1131 return paths.slice(0, 3).join(', ') + (paths.length > 3 ? ` (+${formatNumber(paths.length - 3)} more)` : '');
1132}
1133
1134/**
1135 * 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