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

Function table

libatomic/src/review/viewer.js:472–478  ·  view source on GitHub ↗
(label, headings)

Source from the content-addressed store, hash-verified

470 function cardCoverage() {
471 const host = el('div', 'card-coverage');
472 const table = (label, headings) => {
473 const section = el('section'); section.append(el('h3', '', label));
474 const grid = el('table'), head = el('thead'), row = el('tr'), body = el('tbody');
475 for (const heading of headings) { const cell = el('th', '', heading); cell.scope = 'col'; row.append(cell); }
476 head.append(row); grid.append(head, body); section.append(grid); host.append(section);
477 return body;
478 };
479 const auditBody = table('Audit cards — local rule coverage', ['Card', 'Coverage', 'Checks', viewComparison ? 'New / existing / resolved / other' : 'Findings']);
480 for (const card of data.audit_cards) {
481 const checks = graph.nodes.filter(node => node.kind === 'check' && node.properties.rule === card.id);

Callers 1

cardCoverageFunction · 0.85

Calls 2

elFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected