UNPKG

@bobmatnyc/ai-code-review

Version:

A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter

36 lines (35 loc) 1.07 kB
/** * @fileoverview Dependency analyzer using dependency-cruiser * * This module provides utilities to analyze project dependencies using * dependency-cruiser and format the results for inclusion in architectural reviews. */ export interface DependencyAnalysisResult { modulesCount: number; dependenciesCount: number; circularDependencies: string[]; highlyConnectedModules: Array<{ module: string; dependencyCount: number; }>; externalDependencies: string[]; violationSummary: { error: number; warn: number; info: number; }; topViolations: Array<{ type: string; from: string; to: string; ruleName: string; severity: string; }>; dependencyGraph?: string; } /** * Runs dependency-cruiser on the specified directory to generate dependency analysis * @param directory The directory to analyze * @returns Results from the dependency analysis */ export declare function analyzeDependencies(directory: string): Promise<DependencyAnalysisResult>;