UNPKG

structure-validation

Version:

A Node.js CLI tool for validating codebase folder and file structure using a clean declarative configuration. Part of the guardz ecosystem for comprehensive TypeScript development.

40 lines 1.2 kB
import { ValidationSuggestion } from '../../domain/types/validation.types'; /** * Application service for automatically fixing file structure issues */ export declare class AutoFixService { private readonly basePath; private readonly importUpdateService; constructor(basePath?: string); /** * Auto-fix validation issues by moving files to correct locations and updating imports */ autoFix(suggestions: readonly ValidationSuggestion[], dryRun?: boolean): Promise<{ fixed: string[]; errors: string[]; importUpdates: string[]; importErrors: string[]; summary: string; }>; /** * Move a file to its suggested location */ private moveFile; /** * Generate a comprehensive summary of the auto-fix operation */ private generateSummary; /** * Create a backup of all source files before making changes */ createBackup(): Promise<string>; /** * Get all source files in the project */ private getAllSourceFiles; /** * Restore files from a backup */ restoreFromBackup(backupDir: string): Promise<void>; } //# sourceMappingURL=AutoFixService.d.ts.map