norminette-mcp
Version:
MCP server for 42 School norminette coding standard checker
33 lines (32 loc) • 940 B
TypeScript
/**
* 42 Header structure with all required fields
*/
interface Header42 {
filename: string;
username: string;
email: string;
createdDate: string;
createdBy: string;
updatedDate: string;
updatedBy: string;
}
/**
* Generate a 42 header for a given file
*/
export declare function generate42Header(filePath: string): Promise<string>;
/**
* Check if content already has a 42 header
* Returns true if the first 11 lines match the 42 header pattern
*/
export declare function has42Header(content: string): boolean;
/**
* Extract header information from existing 42 header
* Returns null if header is invalid
*/
export declare function extractHeaderInfo(content: string): Header42 | null;
/**
* Update an existing 42 header with new information
* Preserves creation info, updates the updated fields
*/
export declare function update42Header(content: string, filePath: string): Promise<string>;
export {};