File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44<head >
55 <meta charset =" UTF-8" >
6- <title >SonarQube Vulnerability Report</title >
6+ <title >SonarQube <%= vulnerabilityPhrase %> Report</title >
77 <style >
88 /*
99 The sss stylesheet is released under the MIT license.
159159 </p>
160160 -->
161161
162- <h1 >SonarQube Vulnerability Report</h1 >
162+ <h1 >SonarQube <%= vulnerabilityPhrase %> Report</h1 >
163163
164164 <dl >
165165 <dt >Report Generated On</dt >
185185 < % } %>
186186 </dl >
187187
188- <h2 >Summary of the Detected Vulnerabilities </h2 >
188+ <h2 >Summary of the Detected <%= vulnerabilityPluralPhrase %> </h2 >
189189 <table >
190190 <thead >
191191 <tr >
225225
226226 <div class =detail >
227227 <% if (issues .length > 0 ) { % >
228- < h2> Detail of the Detected Vulnerabilities < / h2>
228+ < h2> Detail of the Detected < %= vulnerabilityPluralPhrase % > </ h2>
229229 < table>
230230 < thead>
231231 < tr>
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ DESCRIPTION
6363 --noSecurityHotspot
6464 Set this flag for old versions of sonarQube without security hotspots (<7.3). Default is false
6565
66+ --vulnerabilityPhrase
67+ Set to override 'Vulnerability' phrase in the report. Default 'Vulnerability'
68+
69+ --vulnerabilityPluralPhrase
70+ Set to override 'Vulnerabilities' phrase in the report. Default 'Vulnerabilities'
71+
6672 --help
6773 display this help message` ) ;
6874 process . exit ( ) ;
@@ -100,6 +106,8 @@ function logError(context, error){
100106 allBugs : ( argv . allbugs == 'true' ) ,
101107 fixMissingRule : ( argv . fixMissingRule == 'true' ) ,
102108 noSecurityHotspot : ( argv . noSecurityHotspot == 'true' ) ,
109+ vulnerabilityPhrase : argv . vulnerabilityPhrase || 'Vulnerability' ,
110+ vulnerabilityPluralPhrase : argv . vulnerabilityPluralPhrase || 'Vulnerabilities' ,
103111 // sonar URL without trailing /
104112 sonarBaseURL : argv . sonarurl . replace ( / \/ $ / , "" ) ,
105113 sonarOrganization : argv . sonarorganization ,
You can’t perform that action at this time.
0 commit comments