forked from soprasteria/sonar-report
-
Notifications
You must be signed in to change notification settings - Fork 1
/
summary.txt.ejs
34 lines (26 loc) · 1.06 KB
/
summary.txt.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
SonarQube <%= vulnerabilityPhrase %> Report
Report Generated On <%= date %>
Project Name: <%= projectName %>
Application: <%= applicationName %>
Release: <%= releaseName %>
Branch: <%= branch %>
Delta analysis: <%= deltaAnalysis %>
<%_ if (sinceLeakPeriod) { _%>
Reference period: <%= previousPeriod %>
<%_ } _%>
<%_ if (qualityGateStatus) { _%>
Quality gate status: <%= qualityGateStatus.projectStatus.status %> on <%= qualityGateStatus.projectStatus.period?.date %> (<%= qualityGateStatus.projectStatus.period?.parameter %>)<
<%_ for (const condition of qualityGateStatus.projectStatus.conditions) { _%>
Metric: <%= condition.metricKey %></td>
Value: <%= condition.actualValue %> <%= condition.comparator == 'GT' ? '>' : '<' %> <%= condition.errorThreshold %></td>
<%_ } _%>
<%_ } _%>
Summary of the Detected <%= vulnerabilityPluralPhrase %>
Severity: BLOCKER
Number of Issues: <%= summary.blocker %>
Severity: CRITICAL
Number of Issues: <%= summary.critical %>
Severity: MAJOR
Number of Issues: <%= summary.major %>
Severity: MINOR
Number of Issues: <%= summary.minor %>