Skip to content

Commit 05da8e0

Browse files
committed
Add total fixed in Json Formatter
1 parent b045ce4 commit 05da8e0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
"security issues": {
6868
"type": "integer",
6969
"minimum": 0
70+
},
71+
"fixed issues": {
72+
"type": "integer",
73+
"minimum": 0
7074
}
7175
}
7276
},

src/Application/Console/Formatters/Json.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ public function format(
4848
'architecture' => $results->getStructure(),
4949
'style' => $results->getStyle(),
5050
'security issues' => $results->getTotalSecurityIssues(),
51+
'fixed issues' => $results->getTotalFix(),
5152
],
5253
];
54+
5355
$data += $this->issues($insightCollection, $metrics);
5456

5557
$json = json_encode($data);

0 commit comments

Comments
 (0)