From d378a6737195921759bbbb7c9cfed85888dc2b15 Mon Sep 17 00:00:00 2001 From: Drew Bollinger Date: Mon, 18 Nov 2024 14:59:44 -0500 Subject: [PATCH] chore: a11y count should respected ignored rules --- tasks/a11y/reporter/generate-report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/a11y/reporter/generate-report.js b/tasks/a11y/reporter/generate-report.js index 7278b55..4eef279 100755 --- a/tasks/a11y/reporter/generate-report.js +++ b/tasks/a11y/reporter/generate-report.js @@ -213,7 +213,7 @@ for await (const file of g) { await writeToJSON(accumulator, '/index', outputPath).then(console.log(`Report generation for build id: ${buildId} complete; open ${outputPath}/index.html to review.`)) // write summary count to stdout to be picked up by subprocess.run - console.log(`Issue Count: ${accumulator.violatedRules.length}`) + console.log(`Issue Count: ${accumulator.violatedRules.filter(rule => !rule.ignore).length}`) } }