mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 15:47:25 +00:00
chore(userspace): adjusted rule_loader::result::as_verbose_string
following errors and warnings output layout.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
468037151a
commit
0f26e3c9ed
@ -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)
|
||||
{
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user