MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / score

Function score

graph-ui/src/architecture/hotspot-map.ts:17–17  ·  view source on GitHub ↗
(finding: ArchitectureHotspot)

Source from the content-addressed store, hash-verified

15}
16const positive = (value?: number) => value !== undefined && Number.isFinite(value) && value > 0 ? value : 0;
17const score = (finding: ArchitectureHotspot) => hotspotScore({ ...finding, fanIn: positive(finding.fanIn), complexity: positive(finding.complexity), cognitive: positive(finding.cognitive), loopDepth: positive(finding.loopDepth) });
18export const hotspotIdentity = (finding: ArchitectureHotspot) => `${finding.qualifiedName ?? finding.name}@${finding.filePath ?? ''}:${finding.line ?? ''}`;
19const identity = hotspotIdentity;
20const compare = (a: string, b: string) => a < b ? -1 : a > b ? 1 : 0;

Callers 1

collectHotspotsFunction · 0.70

Calls 2

hotspotScoreFunction · 0.90
positiveFunction · 0.70

Tested by

no test coverage detected