axe-sarif-converter
Version:
Convert axe-core accessibility scan results to the SARIF format
18 lines (17 loc) • 510 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getArtifactProperties = getArtifactProperties;
exports.getArtifactLocation = getArtifactLocation;
function getArtifactProperties(environmentData) {
return {
location: getArtifactLocation(environmentData),
sourceLanguage: 'html',
roles: ['analysisTarget'],
};
}
function getArtifactLocation(environmentData) {
return {
uri: environmentData.targetPageUrl,
index: 0,
};
}