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

Function renderAuditOverview

libatomic/src/review/viewer.js:422–440  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420 }
421
422 function renderAuditOverview() {
423 const pass = passes.get('anti_slop');
424 const overview = $('audit-overview'); overview.replaceChildren(); overview.className = 'overview';
425 const count = graph.findings.filter(finding => inPass(finding, 'slop')).length;
426 const resolved=graph.findings.filter(item=>inPass(item,'slop') && item.comparison?.status==='resolved').length;
427 overview.append(el('h2', '', viewComparison ? `${count-resolved} current audit observation(s) · ${resolved} resolved` : `${count} audit finding${count === 1 ? '' : 's'}`));
428 if (viewComparison) overview.append(comparisonOverview());
429 overview.append(el('p', 'region-meta', 'Local analysis: atomic-semantic + atomic-audit. No AI execution or network requests.'));
430 overview.append(cardCoverage());
431 const checks = graph.nodes.filter(node => node.kind === 'check');
432 const completed = checks.filter(node => node.properties.status === 'completed').length;
433 const skipped = checks.filter(node => node.properties.status === 'skipped').length;
434 const errors = checks.filter(node => node.properties.status === 'error').length;
435 const coverage = el('div'); coverage.append(el('p', '', pass.detail), el('pre', '', data.audit_cards.map(card => {
436 const own = checks.filter(node => node.properties.rule === card.id);
437 return `${card.title}\n${own.filter(node => node.properties.status === 'completed').length} completed; ${own.filter(node => node.properties.status === 'skipped').length} skipped; ${own.filter(node => node.properties.status === 'error').length} errors\n${data.patterns[card.id]}`;
438 }).join('\n\n')));
439 overview.append(detail(`Audit coverage: ${completed} completed · ${skipped} skipped · ${errors} errors`, coverage));
440 }
441
442 function renderSlop() {
443 const pass = passes.get('anti_slop');

Callers 1

renderSummaryFunction · 0.85

Calls 8

$Function · 0.85
inPassFunction · 0.85
elFunction · 0.85
comparisonOverviewFunction · 0.85
cardCoverageFunction · 0.85
detailFunction · 0.85
getMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected