in src/result-to-rule-converter.ts [103:119]
private static convertResultsToRules(
results: Axe.Result[] | AxeRawResult[],
axeTags: string[],
wcagTagsToTaxaIndices: DictionaryStringTo<number>,
rulesDictionary: DictionaryStringTo<Sarif.ReportingDescriptor>,
): void {
if (results) {
for (const result of results) {
rulesDictionary[result.id] =
ResultToRuleConverter.convertAxeResultToSarifRule(
axeTags,
wcagTagsToTaxaIndices,
result,
);
}
}
}