]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6685, SONAR-6351 Fix syntax issue when generating HTML report
authorJulien HENRY <julien.henry@sonarsource.com>
Wed, 15 Jul 2015 13:01:21 +0000 (15:01 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 15 Jul 2015 13:04:50 +0000 (15:04 +0200)
sonar-batch/src/main/resources/org/sonar/batch/scan/report/issuesreport.ftl

index 86ba1631eaa8b76ce8a5b427dea066582ed07c11..3c5827f43e8b7a001037cf3e07e90293cb158f4d 100644 (file)
@@ -2,7 +2,7 @@
 <html>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-  <title>Issues report of ${report.getTitle()}</title>
+  <title>Issues report of ${report.getTitle()?html}</title>
   <link href="issuesreport_files/sonar.css" media="all" rel="stylesheet" type="text/css">
   <link rel="shortcut icon" type="image/x-icon" href="issuesreport_files/favicon.ico">
   <script type="text/javascript" src="issuesreport_files/jquery.min.js"></script>
@@ -20,7 +20,7 @@
       <#if resourceReport_has_next>,</#if>
     </#list>
     ];
-    var nbResources = ${report.getResourcesWithReport()?size};
+    var nbResources = ${report.getResourcesWithReport()?size?c};
     var separators = new Array();
 
     function showLine(fileIndex, lineId) {
 <div id="reportHeader">
   <div id="logo"><img src="issuesreport_files/sonarqube-24x100.png" alt="SonarQube"/></div>
   <div class="title">Issues Report</div>
-  <div class="subtitle">${report.getTitle()} - ${report.getDate()?datetime}</div>
+  <div class="subtitle">${report.getTitle()?html} - ${report.getDate()?datetime}</div>
 </div>
 
 <#if report.isNoFile()>
               <div class="vtitle">
                 <i class="icon-severity-${issue.severity()?lower_case}"></i>
                 <#if issue.message()??>
-                <span class="rulename">${issue.message()}</span>
+                <span class="rulename">${issue.message()?html}</span>
                 <#else>
                 <span class="rulename">${ruleNameProvider.nameForHTML(issue.ruleKey())}</span>
                 </#if>
                           <div class="vtitle">
                             <i class="icon-severity-${issue.severity()?lower_case}"></i>
                             <#if issue.message()??>
-                            <span class="rulename">${issue.message()}</span>
+                            <span class="rulename">${issue.message()?html}</span>
                             <#else>
                             <span class="rulename">${ruleNameProvider.nameForHTML(issue.ruleKey())}</span>
                             </#if>