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

Function formatPluginInit

packages/plugin-jsdocs/src/lib/binding.ts:86–95  ·  view source on GitHub ↗
([first, ...rest]: [string, ...string[]])

Source from the content-addressed store, hash-verified

84}
85
86function formatPluginInit([first, ...rest]: [string, ...string[]]): string[] {
87 if (rest.length === 0) {
88 return [`jsDocsPlugin(${singleQuote(first)}),`];
89 }
90 return [
91 'jsDocsPlugin([',
92 ...[first, ...rest].map(p => ` ${singleQuote(p)},`),
93 ']),',
94 ];
95}

Callers 1

binding.tsFile · 0.70

Calls 1

singleQuoteFunction · 0.90

Tested by

no test coverage detected