UNPKG

norminette-mcp

Version:

MCP server for 42 School norminette coding standard checker

28 lines (27 loc) 931 B
import { NorminetteError } from '../../types.js'; /** * Interface for structural fixers that modify file structure/content * These are different from token-based formatters as they may add/remove content */ export interface StructuralFixer { name: string; errorCodes: string[]; priority: number; canFix(error: NorminetteError, content: string, filePath: string): boolean; apply(content: string, filePath: string, error: NorminetteError): Promise<string>; } /** * Fix INVALID_HEADER error by adding or updating 42 header */ export declare const headerFixer: StructuralFixer; /** * Collection of all structural fixers */ export declare const structuralFixers: StructuralFixer[]; /** * Apply structural fixes to content based on errors */ export declare function applyStructuralFixes(content: string, filePath: string, errors: NorminetteError[]): Promise<{ content: string; applied: string[]; }>;