/** * Checkstyle output parser for Java linting. * Parses Checkstyle XML output. */ import type { SyntaxDiagnostic } from "../syntax-guard"; /** * Parse Checkstyle XML output into SyntaxDiagnostic[]. */ export function parseCheckstyleOutput(xml: string): SyntaxDiagnostic[] { const diagnostics: SyntaxDiagnostic[] = []; // Simple XML parsing — extract elements // Format: const filePattern = /([\s\S]*?)<\/file>/g; const errorPattern = /