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

Function executePlugins

packages/core/src/lib/implementation/execute-plugin.ts:120–134  ·  view source on GitHub ↗
(config: {
  plugins: PluginConfig[];
  persist: PersistConfig;
  cache: CacheConfigObject;
})

Source from the content-addressed store, hash-verified

118 * }
119 */
120export function executePlugins(config: {
121 plugins: PluginConfig[];
122 persist: PersistConfig;
123 cache: CacheConfigObject;
124}): Promise<PluginReport[]> {
125 return asyncSequential(config.plugins, async (pluginConfig, index) => {
126 const suffix = ansis.gray(`[${index + 1}/${config.plugins.length}]`);
127 const title = `Running plugin "${pluginConfig.title}" ${suffix}`;
128 const message = `Completed "${pluginConfig.title}" plugin execution`;
129 return logger.group(title, async () => {
130 const result = await executePlugin(pluginConfig, config);
131 return { message, result };
132 });
133 });
134}

Callers 2

collectFunction · 0.85

Calls 3

asyncSequentialFunction · 0.90
executePluginFunction · 0.85
groupMethod · 0.80

Tested by

no test coverage detected