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

Function renderSlop

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

Source from the content-addressed store, hash-verified

440 }
441
442 function renderSlop() {
443 const pass = passes.get('anti_slop');
444 const host = $('slop-selection'); host.replaceChildren();
445 const region = regions.find(region => region.id === state.region);
446 if (region) host.append(selection(region, 'slop'));
447 else {
448 const empty = el('div', 'empty', state.query ? 'No matching source region. Clear the search to return to the review.' : pass.status === 'not_applicable' ? pass.detail : 'No numbered findings in this view. That does not establish a clean-code verdict.');
449 empty.append(button('Browse changed metrics', () => { state.query = ''; $('search').value = ''; state.filter = 'changed'; $('region-filter').value = 'changed'; render(); }));
450 host.append(empty);
451 }
452 }
453
454 function comparisonOverview() {
455 const host=el('div'), direction=el('div','comparison-direction');

Callers 1

renderFunction · 0.85

Calls 7

$Function · 0.85
selectionFunction · 0.85
elFunction · 0.85
buttonFunction · 0.85
renderFunction · 0.70
getMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected