Skip to content

Commit 3e29758

Browse files
committedOct 17, 2023
Base total error count on report after preprocessing (fixes #300)
1 parent b331033 commit 3e29758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const run = async () => {
7474

7575
await runReporters(finalData);
7676

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

0 commit comments

Comments
 (0)
Please sign in to comment.