testilo 19.4.0 → 19.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/procs/analyze/credit.js +3 -1
package/package.json
CHANGED
package/procs/analyze/credit.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.credit = reports => {
|
|
|
12
12
|
tools: {},
|
|
13
13
|
issueCounts: {
|
|
14
14
|
total: 0,
|
|
15
|
+
nonOnlies: 0,
|
|
15
16
|
onlies: {}
|
|
16
17
|
}
|
|
17
18
|
};
|
|
@@ -22,7 +23,7 @@ exports.credit = reports => {
|
|
|
22
23
|
if (report.score && report.score.details && report.score.details.issue) {
|
|
23
24
|
// Populate the issue count.
|
|
24
25
|
const issues = report.score.details && report.score.details.issue;
|
|
25
|
-
issueCounts.total = Object.keys(issues).length;
|
|
26
|
+
issueCounts.nonOnlies = issueCounts.total = Object.keys(issues).length;
|
|
26
27
|
// For each issue:
|
|
27
28
|
Object.keys(issues).forEach(issueID => {
|
|
28
29
|
// For each tool with any complaints about it:
|
|
@@ -84,6 +85,7 @@ exports.credit = reports => {
|
|
|
84
85
|
issueCounts.onlies[toolID] = 0;
|
|
85
86
|
}
|
|
86
87
|
issueCounts.onlies[toolID]++;
|
|
88
|
+
issueCounts.nonOnlies--;
|
|
87
89
|
}
|
|
88
90
|
// Otherwise, i.e. if multiple tools complained about it:
|
|
89
91
|
else {
|