@@ -145,6 +145,7 @@ bool checkComplianceJsonSpec(Box const& file, SpecDesc const* spec, Json::Array*
145
145
auto root = std::make_unique<Json::Object>();
146
146
root->content .push_back (std::make_unique<Json::Data>(" specification" , spec->name ));
147
147
auto successArray = std::make_unique<Json::Array>(" successful_checks" );
148
+ auto uncheckedArray = std::make_unique<Json::Array>(" unchecked" );
148
149
auto errorArray = std::make_unique<Json::Array>(" errors" );
149
150
auto warningArray = std::make_unique<Json::Array>(" warnings" );
150
151
@@ -223,7 +224,7 @@ bool checkComplianceJsonSpec(Box const& file, SpecDesc const* spec, Json::Array*
223
224
auto const count = out.errorCount + out.warningCount ;
224
225
rule.check (file, &out);
225
226
226
- if (count == out.errorCount + out.warningCount && out. lastRuleCovered == true )
227
+ if (count == out.errorCount + out.warningCount )
227
228
{
228
229
auto o = std::make_unique<Json::Object>();
229
230
o->content .push_back (std::make_unique<Json::Data>(" rule" , std::to_string (out.ruleIdx )));
@@ -232,7 +233,11 @@ bool checkComplianceJsonSpec(Box const& file, SpecDesc const* spec, Json::Array*
232
233
o->content .push_back (std::make_unique<Json::Data>(" id" , spec->rules [out.ruleIdx ].id ));
233
234
234
235
o->content .push_back (std::make_unique<Json::Data>(" details" , spec->rules [out.ruleIdx ].caption ));
235
- successArray->content .push_back (std::move (o));
236
+
237
+ if (out.lastRuleCovered )
238
+ successArray->content .push_back (std::move (o));
239
+ else
240
+ uncheckedArray->content .push_back (std::move (o));
236
241
}
237
242
}
238
243
catch (std::exception const & e)
@@ -246,6 +251,7 @@ bool checkComplianceJsonSpec(Box const& file, SpecDesc const* spec, Json::Array*
246
251
root->content .push_back (std::move (successArray));
247
252
root->content .push_back (std::move (errorArray));
248
253
root->content .push_back (std::move (warningArray));
254
+ root->content .push_back (std::move (uncheckedArray));
249
255
array->content .push_back (std::move (root));
250
256
251
257
for (auto dep : spec->dependencies )
0 commit comments