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

Function deadCodeRowMeta

ui/src/lib/deadcode-model.ts:65–71  ·  view source on GitHub ↗
(row: WireDeadCodeRow)

Source from the content-addressed store, hash-verified

63
64/** The row's second line: what it is, and what deleting it would remove. */
65export function deadCodeRowMeta(row: WireDeadCodeRow): string {
66 const parts = [kindWord(row.kind), plural(row.lines, 'line')];
67 if (row.members.total > 0) {
68 parts.push(`${plural(row.members.total, 'member')} unreachable with it`);
69 }
70 return parts.join(' · ');
71}
72
73/** The group header's right-hand count. */
74export function groupMeta(group: WireDeadCodeGroup): string {

Callers

nothing calls this directly

Calls 4

kindWordFunction · 0.90
pluralFunction · 0.90
pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected