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

Function createGroup

packages/plugin-axe/src/lib/meta/transform.ts:52–62  ·  view source on GitHub ↗
(
  slug: AxeGroupSlug,
  title: string,
  rules: axe.RuleMetadata[],
)

Source from the content-addressed store, hash-verified

50}
51
52function createGroup(
53 slug: AxeGroupSlug,
54 title: string,
55 rules: axe.RuleMetadata[],
56): Group {
57 return {
58 slug,
59 title,
60 refs: rules.map(({ ruleId }) => ({ slug: ruleId, weight: 1 })),
61 };
62}
63
64function createCategoryGroups(rules: axe.RuleMetadata[]): Group[] {
65 return objectToEntries(CATEGORY_GROUPS).map(([slug, title]) => {

Callers 1

createCategoryGroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected