| 67 | const cardCallout = (id, text) => button(text || id, () => showCard(id, true), 'card-callout'); |
| 68 | const location = region => region.start_line ? `Lines ${region.start_line}–${region.end_line} · ${viewSnapshot ? 'snapshot' : region.side}` : 'File-level observation · range unavailable'; |
| 69 | const regionName = region => { |
| 70 | const subjects = region.subjects.filter(subject => subject !== region.path); |
| 71 | return subjects.length > 1 ? subjects.length + ' source subjects' : subjects[0] || 'File-level facts'; |
| 72 | }; |
| 73 | const inPass = (finding, pass) => finding.passes.includes(pass === 'slop' ? 'anti_slop' : pass === 'risk' ? 'blast_radius_risk' : 'intent_conformance'); |
| 74 | const regionFindings = region => region.findings.map(number => findings.get(number)).filter(Boolean); |
| 75 | const numberText = region => region.findings.map(number => 'F' + number).join(', '); |
no outgoing calls
no test coverage detected