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

Function getPluginNameFromSlug

packages/utils/src/lib/reports/utils.ts:238–245  ·  view source on GitHub ↗
(
  slug: string,
  plugins: ScoredReport['plugins'],
)

Source from the content-addressed store, hash-verified

236}
237
238export function getPluginNameFromSlug(
239 slug: string,
240 plugins: ScoredReport['plugins'],
241): string {
242 return (
243 plugins.find(({ slug: pluginSlug }) => pluginSlug === slug)?.title || slug
244 );
245}
246
247function getSourceIdentifier(source: IssueSource): string {
248 return isFileSource(source) ? source.file : source.url;

Callers 2

categoriesDetailsSectionFunction · 0.85
utils.unit.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected