in src/sarif-result-message-formatter.ts [45:70]
function formatSarifCheckResultsMessage(
heading: string,
checkResults: Axe.CheckResult[] | AxeRawCheckResult[],
textArray: string[],
markdownArray: string[],
): void {
if (checkResults.length > 0) {
const textLines: string[] = [];
const markdownLines: string[] = [];
textLines.push(heading);
markdownLines.push(escapeForMarkdown(heading));
for (const checkResult of checkResults) {
const message = isNotEmpty(checkResult.message)
? checkResult.message
: checkResult.id;
textLines.push(message + '.');
markdownLines.push('- ' + escapeForMarkdown(message) + '.');
}
textArray.push(textLines.join(' '));
markdownArray.push(markdownLines.join('\n'));
}
}