MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / hasIssues

Function hasIssues

lib/properties-validator.ts:633–654  ·  view source on GitHub ↗
(result: RawFileValidationResult)

Source from the content-addressed store, hash-verified

631 * Check if a validation result has any issues.
632 */
633export function hasIssues(result: RawFileValidationResult): boolean {
634 return (
635 result.duplicateKeys.length > 0 ||
636 result.emptyListElements.length > 0 ||
637 result.typoCompilers.length > 0 ||
638 result.invalidPropertyFormat.length > 0 ||
639 result.suspiciousPaths.length > 0 ||
640 result.duplicatedCompilerRefs.length > 0 ||
641 result.duplicatedGroupRefs.length > 0 ||
642 result.orphanedCompilerExe.length > 0 ||
643 result.orphanedCompilerId.length > 0 ||
644 result.orphanedGroups.length > 0 ||
645 result.orphanedFormatterExe.length > 0 ||
646 result.orphanedFormatterId.length > 0 ||
647 result.orphanedToolExe.length > 0 ||
648 result.orphanedToolId.length > 0 ||
649 result.orphanedLibIds.length > 0 ||
650 result.orphanedLibVersions.length > 0 ||
651 result.invalidDefaultCompiler.length > 0 ||
652 result.noCompilersList
653 );
654}
655
656/**
657 * Format validation results for display.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected