Skip to content

Commit

Permalink
Base total error count on report after preprocessing (fixes #300)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 17, 2023
1 parent b331033 commit 3e29758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Expand Up @@ -74,7 +74,7 @@ const run = async () => {

await runReporters(finalData);

const totalErrorCount = (Object.keys(report) as IssueType[])
const totalErrorCount = (Object.keys(finalData.report) as IssueType[])
.filter(reportGroup => report[reportGroup] && rules[reportGroup] === 'error')
.reduce((errorCount: number, reportGroup) => errorCount + counters[reportGroup], 0);

Expand Down

0 comments on commit 3e29758

Please sign in to comment.