MCPcopy Index your code
hub / github.com/code-pushup/cli / createRunnerFunction

Function createRunnerFunction

packages/plugin-jsdocs/src/lib/runner/runner.ts:14–26  ·  view source on GitHub ↗
(
  config: JsDocsPluginTransformedConfig,
)

Source from the content-addressed store, hash-verified

12import { coverageTypeToAuditSlug } from './utils.js';
13
14export function createRunnerFunction(
15 config: JsDocsPluginTransformedConfig,
16): RunnerFunction {
17 return async (): Promise<AuditOutputs> => {
18 const coverageResult = processJsDocs(config);
19 const gitRoot = await getGitRoot();
20 return trasformCoverageReportToAuditOutputs(
21 coverageResult,
22 config,
23 gitRoot,
24 );
25 };
26}
27
28/**
29 * Transforms the coverage report into audit outputs.

Callers 14

typescriptPluginFunction · 0.90
runner.int.test.tsFile · 0.90
coveragePluginFunction · 0.90
runner.int.test.tsFile · 0.90
lighthousePluginFunction · 0.90
eslintPluginFunction · 0.90
runner.int.test.tsFile · 0.90
jsDocsPluginFunction · 0.90
runner.int.test.tsFile · 0.90

Calls 3

processJsDocsFunction · 0.90
getGitRootFunction · 0.90

Tested by

no test coverage detected