Skip to content

Commit

Permalink
Add relative rule uid to report modules
Browse files Browse the repository at this point in the history
Signed-off-by: romanodanilo <[email protected]>
  • Loading branch information
romanodanilo committed Sep 10, 2024
1 parent b8a9864 commit 725dd4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,12 @@ void cCheckerWidget::ShowDetails(cIssue *const itemToShow) const
}

ssDetails << itemToShow->GetIssueLevelStr().c_str() << " | " << itemToShow->GetDescription().c_str();
if (itemToShow->GetRuleUID() != "")
{
ssDetails << "\nRelative to ruleUID: ";
ssDetails << itemToShow->GetRuleUID().c_str();
}

// Add extended informations to description if present
std::stringstream extended_info_stream;
if (itemToShow->HasLocations())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,12 @@ void WriteResults(const char *file, cResultContainer *ptrResultContainer)
ss << "\n " << mapIssueLevelToString[(*it_Issue)->GetIssueLevel()]
<< (*it_Issue)->GetDescription();

if ((*it_Issue)->GetRuleUID() != "")
{
ss << "\n "
<< "Relative to ruleUID: " << (*it_Issue)->GetRuleUID();
}

PrintExtendedInformationIntoStream((*it_Issue), &ss);
if ((*it_Issue)->GetRuleUID() != "")
{
Expand Down

0 comments on commit 725dd4c

Please sign in to comment.