MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / regionName

Function regionName

libatomic/src/review/viewer.js:69–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(', ');

Callers 2

selectionFunction · 0.85
renderNavigationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected