MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / summarizeLayoutIssues

Function summarizeLayoutIssues

packages/cli/src/utils/layoutAudit.ts:110–122  ·  view source on GitHub ↗
(issues: LayoutIssue[])

Source from the content-addressed store, hash-verified

108}
109
110export function summarizeLayoutIssues(issues: LayoutIssue[]): LayoutSummary {
111 const errorCount = issues.filter((issue) => issue.severity === "error").length;
112 const warningCount = issues.filter((issue) => issue.severity === "warning").length;
113 const infoCount = issues.filter((issue) => issue.severity === "info").length;
114
115 return {
116 ok: errorCount === 0,
117 errorCount,
118 warningCount,
119 infoCount,
120 issueCount: issues.length,
121 };
122}
123
124export function formatLayoutIssue(issue: LayoutIssue): string {
125 const timeLabel =

Callers 2

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected