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

Function metricId

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

Source from the content-addressed store, hash-verified

18 const snapshots = new Map(data.sources.map(source => [source.change + '\0' + source.path, source]));
19 const passes = new Map(graph.passes.map(pass => [pass.pass, pass]));
20 const metricId = node => 'metric.' + node.properties.observation.metric.replaceAll('_', '-');
21 const metricCards = new Map(data.metric_cards.map(card => ['metric.' + card.metric.replaceAll('_', '-'), card]));
22 const auditCards = new Map(data.audit_cards.map(card => [card.id, card]));
23 const risk = graph.risk;

Callers 4

showCardFunction · 0.85
metricTableFunction · 0.85
matchesFunction · 0.85
cardCoverageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected