@bobmatnyc/ai-code-review
Version:
A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter
39 lines (38 loc) • 1.25 kB
TypeScript
/**
* @fileoverview Dependency analysis report formatters for AI Code Review
*
* This module provides functions for formatting dependency analysis reports
* in markdown format with consistent styling and structure.
*/
import { SecurityIssues } from './securityAnalysis';
/**
* Comprehensive dependency analysis result
*/
export interface EnhancedDependencyAnalysis {
projectName: string;
techStackReport: string;
unusedDependencies: string[];
securityIssues: SecurityIssues;
dependencyGraph: string;
dependencySummary: {
total: number;
direct: number;
dev: number;
transitive: number;
};
recommendations: string[];
securityReport: string;
overallReport: string;
}
/**
* Format the overall dependency analysis report
* @param analysis The enhanced dependency analysis result
* @returns Formatted markdown report
*/
export declare function formatOverallReport(analysis: EnhancedDependencyAnalysis): string;
/**
* Creates a section for dependency analysis in a review
* @param projectPath Path to the project directory
* @returns Promise with formatted dependency analysis section
*/
export declare function formatDependencyAnalysisSection(report: string): string;