MCPcopy
hub / github.com/Fission-AI/OpenSpec / createReport

Method createReport

src/core/validation/validator.ts:391–409  ·  view source on GitHub ↗
(issues: ValidationIssue[])

Source from the content-addressed store, hash-verified

389 }
390
391 private createReport(issues: ValidationIssue[]): ValidationReport {
392 const errors = issues.filter(i => i.level === 'ERROR').length;
393 const warnings = issues.filter(i => i.level === 'WARNING').length;
394 const info = issues.filter(i => i.level === 'INFO').length;
395
396 const valid = this.strictMode
397 ? errors === 0 && warnings === 0
398 : errors === 0;
399
400 return {
401 valid,
402 issues,
403 summary: {
404 errors,
405 warnings,
406 info,
407 },
408 };
409 }
410
411 isValid(report: ValidationReport): boolean {
412 return report.valid;

Callers 4

validateSpecMethod · 0.95
validateSpecContentMethod · 0.95
validateChangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected