UNPKG

@regele/devtools

Version:

A collection of developer utilities for code processing and text analysis

63 lines (62 loc) 1.27 kB
/** * Shared types for the code analyzer */ /** * Severity levels for code analysis findings */ export declare enum SeverityLevel { Info = "info", Warning = "warning", Error = "error", Critical = "critical" } /** * Category types for code analysis findings */ export declare enum CategoryType { Performance = "performance", Security = "security", Maintainability = "maintainability", Bugs = "bugs", Style = "style" } /** * Code analysis finding */ export interface CodeFinding { id: string; message: string; severity: SeverityLevel; category: CategoryType; filePath: string; line: number; column: number; endLine?: number; endColumn?: number; code: string; suggestion?: string; explanation: string; functionName?: string; } /** * Code analysis result */ export interface CodeAnalysisResult { filePath: string; fileType: string; findings: CodeFinding[]; success: boolean; error?: string; } /** * Code analysis options */ export interface CodeAnalysisOptions { minSeverity?: SeverityLevel; categories?: CategoryType[]; ignore?: string[]; maxDepth?: number; rootDir?: string; config?: Record<string, any>; dryRun?: boolean; }