Skip to content

Commit

Permalink
chore(userspace): adjusted rule_loader::result::as_verbose_string f…
Browse files Browse the repository at this point in the history
…ollowing errors and warnings output layout.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP authored and poiana committed Sep 11, 2024
1 parent 4680371 commit 0f26e3c
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions userspace/engine/rule_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const std::string& rule_loader::result::as_summary_string()
{
os << std::endl;

os << schema_validation_status.size() << " schema warnings: [";
os << " " << schema_validation_status.size() << " schema warnings: [";
bool first = true;
for(auto& status : schema_validation_status)
{
Expand Down Expand Up @@ -472,22 +472,17 @@ const std::string& rule_loader::result::as_verbose_string(const rules_contents_t
{
os << std::endl;

os << schema_validation_status.size() << " schema warnings: [";
bool first = true;
os << schema_validation_status.size()
<< " Schema warnings:" << std::endl;

for(auto& status : schema_validation_status)
{
if(!first)
{
os << " ";
}
first = false;

os << status;
os << "------" << std::endl;
os << status << std::endl;
}
os << "]";
os << "------" << std::endl;
}
}

if (!errors.empty())
{
os << std::endl;
Expand Down

0 comments on commit 0f26e3c

Please sign in to comment.