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

Function hasComplexityReadings

graph-ui/src/impact/risk-rules.ts:219–226  ·  view source on GitHub ↗
(input: SymbolRiskInput)

Source from the content-addressed store, hash-verified

217 * else is exactly the case this predicate has to answer no to.
218 */
219export function hasComplexityReadings(input: SymbolRiskInput): boolean {
220 return measured(input.cyclomatic) !== undefined
221 || measured(input.cognitive) !== undefined
222 || measured(input.transitiveLoopDepth) !== undefined
223 || input.allocInLoop !== undefined
224 || input.linearScanInLoop !== undefined
225 || input.unguardedRecursion !== undefined;
226}
227
228export function completenessOf(inputs: readonly SymbolRiskInput[]): RiskInputCompleteness {
229 let measuredCount = 0;

Callers 2

risk-rules.test.tsFile · 0.90
completenessOfFunction · 0.85

Calls 1

measuredFunction · 0.85

Tested by

no test coverage detected