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

Function configureJsDocsPlugin

code-pushup.preset.ts:171–198  ·  view source on GitHub ↗
(projectName?: string)

Source from the content-addressed store, hash-verified

169}
170
171export function configureJsDocsPlugin(projectName?: string): CoreConfig {
172 const patterns: string[] = [
173 `packages/${projectName ?? '*'}/src/**/*.ts`,
174 `!**/node_modules`,
175 `!**/{mocks,mock}`,
176 `!**/*.{spec,test}.ts`,
177 `!**/implementation/**`,
178 `!**/internal/**`,
179 ];
180 return {
181 plugins: [jsDocsPlugin(patterns)],
182 categories: [
183 {
184 slug: 'docs',
185 title: 'Documentation',
186 description: 'Measures how much of your code is **documented**.',
187 refs: [
188 {
189 type: 'group',
190 plugin: 'jsdocs',
191 slug: 'documentation-coverage',
192 weight: 1,
193 },
194 ],
195 },
196 ],
197 };
198}
199
200export async function configureLighthousePlugin(
201 urls: PluginUrls,

Calls 1

jsDocsPluginFunction · 0.85

Tested by

no test coverage detected