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

Function emptyMessage

ui/src/lib/deadcode-model.ts:87–95  ·  view source on GitHub ↗
(payload: WireDeadCode)

Source from the content-addressed store, hash-verified

85 * points at the toggle that would widen it.
86 */
87export function emptyMessage(payload: WireDeadCode): string {
88 if (payload.candidates === 0) {
89 return 'Every symbol in this index is referenced by something. Nothing to show.';
90 }
91 if (payload.includeExported) {
92 return `Every one of the ${payload.candidates.toLocaleString()} symbols with no incoming reference has a reason to be reachable anyway — see the list of exclusions below.`;
93 }
94 return `All ${payload.candidates.toLocaleString()} symbols with no incoming reference are either reachable from outside this repository or excluded for the reasons below. Turn on "including exported" to see the ones the index cannot check.`;
95}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected