MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / indexHealthByFile

Function indexHealthByFile

src/health/store.ts:116–126  ·  view source on GitHub ↗
(
  artifact: CodebaseHealthArtifact | null,
  rootPath?: string
)

Source from the content-addressed store, hash-verified

114}
115
116export function indexHealthByFile(
117 artifact: CodebaseHealthArtifact | null,
118 rootPath?: string
119): Map<string, CodebaseHealthFile> {
120 const map = new Map<string, CodebaseHealthFile>();
121 if (!artifact) return map;
122 for (const fileHealth of artifact.files) {
123 map.set(normalizeHealthLookupKey(fileHealth.file, rootPath), fileHealth);
124 }
125 return map;
126}

Callers 2

handleFunction · 0.85
handleFunction · 0.85

Calls 2

normalizeHealthLookupKeyFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected