diff --git a/src/summary.sh b/src/summary.sh index 3d8a3c36..a38c15af 100644 --- a/src/summary.sh +++ b/src/summary.sh @@ -10,6 +10,9 @@ summary () { scan_summary=$(diff_scan_summary) fi + local defect_statistics="" + defect_statistics=$(summary_defect_statistics) + local useful_links= useful_links=$(summary_useful_links) @@ -18,6 +21,8 @@ summary () { ${scan_summary} +${defect_statistics} + ${useful_links}" } @@ -106,6 +111,15 @@ link_to_results () { esac } +summary_defect_statistics () { + echo -e "\ +#### New defects statistics + +| | 👕 Style | 🗒️ Note | ⚠️ Warning | 🛑 Error | +|:--------:|:------------------------:|:-----------------------:|:--------------------------:|:------------------------:| +| 🔢 Count | **${stat_style:-"N/A"}** | **${stat_note:-"N/A"}** | **${stat_warning:-"N/A"}** | **${stat_error:-"N/A"}** |" +} + # Print useful information at the end of summary report # $? - return value - 0 on success summary_useful_links () {