mira-consciousness
Version:
Memory & Intelligence Retention Archive - Preserving The Spark
17 lines • 622 B
TypeScript
/**
* Code Complexity Analyzer
* Measures cyclomatic and cognitive complexity of functions
*/
import { ComplexityAnalysis, PerformanceIssue } from './types.js';
export declare class ComplexityAnalyzer {
private projectRoot;
constructor(projectRoot: string);
analyze(issues: PerformanceIssue[]): Promise<ComplexityAnalysis | undefined>;
private extractFunctions;
private extractFunctionBody;
private calculateCyclomaticComplexity;
private removeCommentsAndStrings;
private calculateNestingLevel;
private calculateCognitiveComplexity;
}
//# sourceMappingURL=ComplexityAnalyzer.d.ts.map