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

Function parseAnswers

packages/plugin-jsdocs/src/lib/binding.ts:75–84  ·  view source on GitHub ↗
(answers: Record<string, PluginAnswer>)

Source from the content-addressed store, hash-verified

73} satisfies PluginSetupBinding;
74
75function parseAnswers(answers: Record<string, PluginAnswer>): JsDocsOptions {
76 return {
77 patterns: answerNonEmptyArray(
78 answers,
79 'jsdocs.patterns',
80 DEFAULT_PATTERNS[0],
81 ),
82 categories: answerBoolean(answers, 'jsdocs.categories'),
83 };
84}
85
86function formatPluginInit([first, ...rest]: [string, ...string[]]): string[] {
87 if (rest.length === 0) {

Callers 1

binding.tsFile · 0.70

Calls 2

answerNonEmptyArrayFunction · 0.90
answerBooleanFunction · 0.90

Tested by

no test coverage detected