MCPcopy Create free account
hub / github.com/code-pushup/cli / getSortedGroupAudits

Function getSortedGroupAudits

packages/utils/src/lib/reports/sorting.ts:41–59  ·  view source on GitHub ↗
(
  group: Group,
  plugin: string,
  plugins: ScoredReport['plugins'],
)

Source from the content-addressed store, hash-verified

39}
40
41export function getSortedGroupAudits(
42 group: Group,
43 plugin: string,
44 plugins: ScoredReport['plugins'],
45): SortableAuditReport[] {
46 return group.refs
47 .map(ref =>
48 getSortableAuditByRef(
49 {
50 plugin,
51 slug: ref.slug,
52 weight: ref.weight,
53 type: 'audit',
54 },
55 plugins,
56 ),
57 )
58 .sort(compareCategoryAuditsAndGroups);
59}
60
61export function getSortableGroupByRef(
62 { plugin, slug, weight }: CategoryRef,

Callers 2

getSortableGroupByRefFunction · 0.85

Calls 1

getSortableAuditByRefFunction · 0.85

Tested by

no test coverage detected