Validates project compatibility with the parser
Runs before transformations:
Detects patterns that may cause parsing issues; by default up to 50 files are sampled.
const validator = new ProjectCompatibilityValidator();const report = await validator.validateProject('/path/to/project');if (report.overallCompatibility === 'incompatible') { console.error('Project is incompatible:', report.checks); console.info('Recommendation:', report.recommendedParser);} Copy
const validator = new ProjectCompatibilityValidator();const report = await validator.validateProject('/path/to/project');if (report.overallCompatibility === 'incompatible') { console.error('Project is incompatible:', report.checks); console.info('Recommendation:', report.recommendedParser);}
Optional
Absolute path to project root
Comprehensive compatibility report
Validates project compatibility with the parser
Runs before transformations:
Detects patterns that may cause parsing issues; by default up to 50 files are sampled.
Example