axe-sarif-converter
Version:
Convert axe-core accessibility scan results to the SARIF format
27 lines (26 loc) • 1.34 kB
TypeScript
import * as Sarif from 'sarif';
import { AxeRawResult } from './axe-raw-result';
import { ConverterOptions } from './converter-options';
import { EnvironmentData } from './environment-data';
export declare function defaultAxeRawSarifConverter(): AxeRawSarifConverter;
export declare class AxeRawSarifConverter {
private getConverterToolProperties;
private getAxeProperties;
private invocationConverter;
private getArtifactProperties;
private readonly tagsToWcagLinkData;
private readonly wcagLinkDataIndexer;
constructor(getConverterToolProperties: () => Sarif.Run['conversion'], getAxeProperties: (environmentData: EnvironmentData) => Sarif.ToolComponent, invocationConverter: (environmentData: EnvironmentData) => Sarif.Invocation[], getArtifactProperties: (environmentData: EnvironmentData) => Sarif.Artifact);
convert(results: AxeRawResult[], converterOptions: ConverterOptions, environmentData: EnvironmentData): Sarif.Log;
private convertRun;
private convertRawResults;
private convertRawNodeResults;
private convertRawNodeResult;
private getLogicalLocations;
private formatLogicalLocation;
private generateResultForInapplicableRule;
private getSarifResultKind;
private getSelectorFromRawNode;
private getXpathFromRawNode;
private getResultLevelFromResultKind;
}