import e from"./preprocessWarnings.mjs";function t(t,n){const r="Stylelint problem",i=n.ruleMetadata,l=t.flatMap(t=>{const{source:n,warnings:l}=e(t);return l.map(({line:e,column:t,endLine:l,endColumn:o,text:a,severity:u,rule:$})=>{const c=function(e,t){if(!t)return e;const n=t.url?` - ${t.url}`:"";let r=[t.fixable?"maybe fixable":"",t.deprecated?"deprecated":""].filter(Boolean).join(", ");return r=r?` [${r}]`:"",`${e}${r}${n}`}(a,i[$]);return void 0===l?`::${u} file=${n},line=${e},col=${t},title=${r}::${c}`:`::${u} file=${n},line=${e},col=${t},endLine=${l},endColumn=${o},title=${r}::${c}`})});return l.push("::notice title=Stylelint deprecation::The github formatter is deprecated"),l.push(""),l.join("\n")}export{t as default};