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

Function expandWildcardRules

packages/plugin-eslint/src/lib/meta/rules.ts:50–56  ·  view source on GitHub ↗
(
  wildcard: string,
  rules: string[],
)

Source from the content-addressed store, hash-verified

48}
49
50export function expandWildcardRules(
51 wildcard: string,
52 rules: string[],
53): string[] {
54 const prefix = wildcard.slice(0, -1);
55 return rules.filter(rule => rule.startsWith(prefix));
56}

Callers 2

rules.unit.test.tsFile · 0.85
resolveGroupRefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected