( source: IssueSource, options?: Pick<MdReportOptions, 'outputDir'>, )
| 119 | * Link to source (handles both file and URL sources) |
| 120 | */ |
| 121 | export 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 | |
| 131 | export function formatSourceLine( |
| 132 | position: SourceFileLocation['position'], |
no test coverage detected