Skip to content

Commit 47e3109

Browse files
authored
Fix: Display total count of hints in scan results
Close #904
1 parent 35f9696 commit 47e3109

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/routes/scanner.js

+3
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,14 @@ const processHintResults = async (scanResult) => {
109109
return hint.messages.length === 1 && hint.messages[0].message === 'Error in webhint analyzing this hint';
110110
});
111111

112+
result.hintsCount = 0;
113+
112114
/*
113115
* Formatter always returns hint status equal to `finished`
114116
* We need to assign the real status
115117
*/
116118
hints.forEach((hint) => {
119+
result.hintsCount += hint.messages.length;
117120
const resultCategory = result.getCategoryByName(hint.category);
118121
let resultHint = resultCategory.getHintByName(hint.name);
119122

0 commit comments

Comments
 (0)