UNPKG

sicua

Version:

A tool for analyzing project structure and dependencies

35 lines (34 loc) 1.21 kB
/** * General Analyzer - Extracts general code metrics from the codebase */ import { GeneralAnalyzerConfig, GeneralAnalysisResult } from "./types/generalAnalyzer.types"; import { ScanResult } from "../../types"; export declare class GeneralAnalyzer { private scanResult; private config; private projectRoot; constructor(scanResult: ScanResult, config?: GeneralAnalyzerConfig); /** * Extracts the project root directory from the scanned file paths * @returns The project root directory path */ private extractProjectRoot; /** * Performs the general analysis and returns metrics * @returns Promise containing the analysis result */ analyze(): Promise<GeneralAnalysisResult>; /** * Filters files based on configuration * @returns Array of file paths that should be analyzed */ private getRelevantFiles; /** * Gets context code for a node (line before, current line, line after) * This is the same function signature as used in translations * @param node The AST node * @param sourceFile The source file * @returns Object with before, line, and after text */ private getContextCode; }