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

Function linkToSource

packages/utils/src/lib/reports/formatting.ts:121–129  ·  view source on GitHub ↗
(
  source: IssueSource,
  options?: Pick<MdReportOptions, 'outputDir'>,
)

Source from the content-addressed store, hash-verified

119 * Link to source (handles both file and URL sources)
120 */
121export function linkToSource(
122 source: IssueSource,
123 options?: Pick<MdReportOptions, 'outputDir'>,
124): InlineText {
125 if (isUrlSource(source)) {
126 return md.link(source.url, source.url);
127 }
128 return linkToLocalSourceForIde(source, options);
129}
130
131export function formatSourceLine(
132 position: SourceFileLocation['position'],

Callers 1

auditDetailsIssuesFunction · 0.85

Calls 2

isUrlSourceFunction · 0.85
linkToLocalSourceForIdeFunction · 0.85

Tested by

no test coverage detected