Browse Source

PMD fixes

Fix package names
Include submodules
Show generation timestamp at end of report

Change-Id: I1d4bb04840f5631369e96ef2d43ea5dd08a82634
Reviewed-on: http://gerrit.dmdirc.com/1337
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.4rc1
Chris Smith 14 years ago
parent
commit
440606618e
2 changed files with 5 additions and 1 deletions
  1. 4
    1
      build-reports.xml
  2. 1
    0
      checkstyle/pmd.xslt

+ 4
- 1
build-reports.xml View File

@@ -155,7 +155,10 @@
155 155
             
156 156
             <ruleset>checkstyle/pmd_checks.xml</ruleset>
157 157
             <formatter type="xml" toFile="reports/report-pmd.xml" linkPrefix="http://pmd.sourceforge.net/xref/"/>
158
-            <fileset dir="src/com/" includes="**/*.java" />
158
+            <fileset dir="src/" includes="com/dmdirc/**/*.java" />
159
+            <fileset dir="modules/plugins/src/" includes="com/dmdirc/**/*.java"/>
160
+            <fileset dir="modules/util/src/" includes="com/dmdirc/**/*.java"/>
161
+            <fileset dir="modules/parser/src/" includes="com/dmdirc/**/*.java"/>
159 162
         </pmd>
160 163
         <xslt in="reports/report-pmd.xml" style="checkstyle/pmd.xslt" out="reports/report-pmd.html" />
161 164
     </target>

+ 1
- 0
checkstyle/pmd.xslt View File

@@ -119,6 +119,7 @@
119 119
         </table>
120 120
         <br/>
121 121
     </xsl:for-each>
122
+<p>Report generated at: <xsl:value-of select="@timestamp"/></p>
122 123
 </body>
123 124
 </html>
124 125
 </xsl:template>

Loading…
Cancel
Save