MCPcopy Create free account
hub / github.com/code-pushup/cli / create

Function create

examples/plugins/src/package-json/src/package-json.plugin.ts:69–79  ·  view source on GitHub ↗
(options: PluginOptions)

Source from the content-addressed store, hash-verified

67 * npx code-pushup
68 */
69export function create(options: PluginOptions): PluginConfig {
70 return {
71 slug: pluginSlug,
72 title: 'Package Json',
73 icon: 'npm',
74 description: 'A plugin to validate package.json files.',
75 runner: runnerFunction(options),
76 audits: [licenseAuditMeta, dependenciesAuditMeta, typeAuditInfoMeta],
77 groups: [documentationGroup, versionControlGroup, performanceGroup],
78 };
79}
80
81type RunnerOptions = PluginOptions;
82export function runnerFunction(options: RunnerOptions): RunnerFunction {

Calls 1

runnerFunctionFunction · 0.70

Tested by

no test coverage detected