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

Function addImports

packages/create-cli/src/lib/setup/codegen.ts:128–136  ·  view source on GitHub ↗
(
  builder: CodeBuilder,
  imports: ImportDeclarationStructure[],
)

Source from the content-addressed store, hash-verified

126}
127
128function addImports(
129 builder: CodeBuilder,
130 imports: ImportDeclarationStructure[],
131): void {
132 if (imports.length > 0) {
133 builder.addLines(imports.map(formatImport));
134 builder.addEmptyLine();
135 }
136}
137
138function addPluginDeclarations(
139 builder: CodeBuilder,

Callers 2

generateConfigSourceFunction · 0.85
generatePresetSourceFunction · 0.85

Calls 2

addLinesMethod · 0.80
addEmptyLineMethod · 0.80

Tested by

no test coverage detected