import r from"./calcSeverityCounts.mjs";import n from"../utils/pluralize.mjs";import e from"./preprocessWarnings.mjs";function o(o){const t={error:0,warning:0},i=o.flatMap(n=>(e(n),n.warnings.map(e=>(r(e.severity,t),`${n.source}:${e.line}:${e.column}: ${e.text} [${e.severity}]`)))),s=i.length;let a=i.join("\n");return s>0&&(a+=`\n\n${s} ${n("problem",s)}`,a+=` (${t.error} ${n("error",t.error)}`,a+=`, ${t.warning} ${n("warning",t.warning)})\n`),a}export{o as default};