MPDASHBOARD-7. Added new Checkstyle File aggregator and PMD aggregators (count of violations and count of files with violations). Thanks to Paul Spencer.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol committed 2004-07-25 07:38:50 +00:00
1 parent 0df3cce793
commit fc04278acc
9 files changed
+199 -3

No files matched your search

+21
View File
@@ -78,6 +78,13 @@ maven.dashboard.rungoals = true
# Default aggregators
# -------------------
# Properties for the Checkstyle files aggregator
maven.dashboard.aggregator.csfiles.script = ${maven.dashboard.aggregators.dir}/csfiles.jelly
maven.dashboard.aggregator.csfiles.artifact = ${maven.build.dir}/checkstyle-raw-report.xml
maven.dashboard.aggregator.csfiles.label = CS Files
maven.dashboard.aggregator.csfiles.goal = checkstyle
maven.dashboard.aggregator.csfiles.description = Number of files checked with Checkstyle
# Properties for the Checkstyle error/warning aggregator (all errors/warnings)
maven.dashboard.aggregator.csall.script = ${maven.dashboard.aggregators.dir}/csall.jelly
maven.dashboard.aggregator.csall.artifact = ${maven.build.dir}/checkstyle-raw-report.xml
@@ -148,6 +155,20 @@ maven.dashboard.aggregator.junitpassrate.label = JUnit Pass Rate
maven.dashboard.aggregator.junitpassrate.goal = junit-report:report
maven.dashboard.aggregator.junitpassrate.description = Percentage of JUnit tests that have passed vs tests in error or failed
# Properties for the PMD violations aggregator
maven.dashboard.aggregator.pmdfiles.script = ${maven.dashboard.aggregators.dir}/pmdfiles.jelly
maven.dashboard.aggregator.pmdfiles.artifact = ${maven.build.dir}/pmd-raw-report.xml
maven.dashboard.aggregator.pmdfiles.label = PMD Files with Violations
maven.dashboard.aggregator.pmdfiles.goal = pmd:report
maven.dashboard.aggregator.pmdfiles.description = Number of files with PMD violations
# Properties for the PMD violations aggregator
maven.dashboard.aggregator.pmdviolations.script = ${maven.dashboard.aggregators.dir}/pmdviolations.jelly
maven.dashboard.aggregator.pmdviolations.artifact = ${maven.build.dir}/pmd-raw-report.xml
maven.dashboard.aggregator.pmdviolations.label = PMD Violations
maven.dashboard.aggregator.pmdviolations.goal = pmd:report
maven.dashboard.aggregator.pmdviolations.description = Number of PMD violations
# Properties for the Simian duplicate lines aggregator
maven.dashboard.aggregator.simiantdl.script = ${maven.dashboard.aggregators.dir}/simiantdl.jelly
maven.dashboard.aggregator.simiantdl.artifact = ${maven.build.dir}/generated-xdocs/simian-report.xml
+5 -1
View File
@@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-dashboard-plugin</id>
<name>Maven Dashboard Plugin</name>
<currentVersion>1.3</currentVersion>
<currentVersion>1.4-SNAPSHOT</currentVersion>
<description>Generate a dashboard containing global statistics about other maven reports</description>
<shortDescription>Generate a statistic dashboard</shortDescription>
<url>http://maven.apache.org/reference/plugins/dashboard/</url>
@@ -75,6 +75,10 @@
<name>John D Taylor</name>
<email>jdt@roe.ac.uk</email>
</contributor>
<contributor>
<name>Paul Spencer</name>
<email>paulsp@apache.org</email>
</contributor>
</contributors>
<dependencies/>
</project>
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<!--
========================================================================
Checkstyle aggregator. Extracts count of files checked with Checkstyle
raw XML file.
========================================================================
-->
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util">
<u:file var="artifactAsFile"
name="${maven.dashboard.aggregator.csfiles.artifact}"/>
<j:choose>
<j:when test="${artifactAsFile.exists()}">
<x:parse var="doc" xml="${artifactAsFile}"/>
<x:expr select="count($doc//file)"/>
</j:when>
<j:otherwise>
<j:expr value="-"/>
</j:otherwise>
</j:choose>
</j:jelly>
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<!--
========================================================================
PMD aggregator. Extracts count of files with violations from PMD raw
XML file.
========================================================================
-->
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util">
<u:file var="artifactAsFile"
name="${maven.dashboard.aggregator.pmdfiles.artifact}"/>
<j:choose>
<j:when test="${artifactAsFile.exists()}">
<x:parse var="doc" xml="${artifactAsFile}"/>
<x:expr select="count($doc//file)"/>
</j:when>
<j:otherwise>
<j:expr value="-"/>
</j:otherwise>
</j:choose>
</j:jelly>
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<!--
========================================================================
PMD aggregator. Extracts violation count from PMD raw XML
file.
========================================================================
-->
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:u="jelly:util">
<u:file var="artifactAsFile"
name="${maven.dashboard.aggregator.pmdviolations.artifact}"/>
<j:choose>
<j:when test="${artifactAsFile.exists()}">
<x:parse var="doc" xml="${artifactAsFile}"/>
<x:expr select="count($doc//violation)"/>
</j:when>
<j:otherwise>
<j:expr value="-"/>
</j:otherwise>
</j:choose>
</j:jelly>
+1 -1
View File
@@ -36,7 +36,7 @@ maven.dashboard.runreactor = false
# Define what dashboard aggregators will be run. This property is inherited
# by the subprojects and thus they don't need to define it again.
maven.dashboard.aggregators = csall,cserrors,cswarnings,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl
maven.dashboard.aggregators = csall,cserrors,cswarnings,csfiles,clovertpc,cloverloc,cloverncloc,junittests,junitpassrate,junitfailures,juniterrors,simiantdl,pmdfiles,pmdviolations
# Make sure that an XML report is generated whenever Clover is run. Also
# inherited by the subprojects.
+21
View File
@@ -46,6 +46,13 @@
Computes total number of Checkstyle warnings and errors.
</td>
</tr>
<tr>
<td>csfiles</td>
<td>Checkstyle</td>
<td>
Computes total number of files checked by Checkstyle.
</td>
</tr>
<tr>
<td>cserrors</td>
<td>Checkstyle</td>
@@ -109,6 +116,20 @@
Percentage of JUnit tests that have passed.
</td>
</tr>
<tr>
<td>pmdfiles</td>
<td>PMD</td>
<td>
Computes total number of files with PMD violations.
</td>
</tr>
<tr>
<td>pmdviolations</td>
<td>PMD</td>
<td>
Computes total number of PMD violations.
</td>
</tr>
<tr>
<td>simiantdl</td>
<td>Simian</td>
+6
View File
@@ -24,6 +24,12 @@
<author email="vmassol@apache.org">Vincent Massol</author>
</properties>
<body>
<release version="1.4-SNAPSHOT" date="in CVS">
<action dev="vmassol" type="add" issue="MPDASHBOARD-7" due-to="Paul Spencer">
Added new Checkstyle File aggregator and PMD aggregators (count of
violations and count of files with violations).
</action>
</release>
<release version="1.3" date="2004-05-15">
<action dev="vmassol" type="update">Better error reporting when a wrong aggregator name is used.</action>
<action dev="vmassol" type="add">Added Simian Total Duplicate Lines aggregator.</action>
+22 -1
View File
@@ -83,6 +83,13 @@ maven.dashboard.rungoals = true
# Default aggregators
# -------------------
# Properties for the Checkstyle files aggregator
maven.dashboard.aggregator.csfiles.script = ${maven.dashboard.aggregators.dir}/csfiles.jelly
maven.dashboard.aggregator.csfiles.artifact = ${maven.build.dir}/checkstyle-raw-report.xml
maven.dashboard.aggregator.csfiles.label = CS Files
maven.dashboard.aggregator.csfiles.goal = checkstyle
maven.dashboard.aggregator.csfiles.description = Number of files checked with Checkstyle
# Properties for the Checkstyle error/warning aggregator (all errors/warnings)
maven.dashboard.aggregator.csall.script = ${maven.dashboard.aggregators.dir}/csall.jelly
maven.dashboard.aggregator.csall.artifact = ${maven.build.dir}/checkstyle-raw-report.xml
@@ -153,6 +160,20 @@ maven.dashboard.aggregator.junitpassrate.label = JUnit Pass Rate
maven.dashboard.aggregator.junitpassrate.goal = junit-report:report
maven.dashboard.aggregator.junitpassrate.description = Percentage of JUnit tests that have passed vs tests in error or failed
# Properties for the PMD violations aggregator
maven.dashboard.aggregator.pmdfiles.script = ${maven.dashboard.aggregators.dir}/pmdfiles.jelly
maven.dashboard.aggregator.pmdfiles.artifact = ${maven.build.dir}/pmd-raw-report.xml
maven.dashboard.aggregator.pmdfiles.label = PMD Files with Violations
maven.dashboard.aggregator.pmdfiles.goal = pmd:report
maven.dashboard.aggregator.pmdfiles.description = Number of files with PMD violations
# Properties for the PMD violations aggregator
maven.dashboard.aggregator.pmdviolations.script = ${maven.dashboard.aggregators.dir}/pmdviolations.jelly
maven.dashboard.aggregator.pmdviolations.artifact = ${maven.build.dir}/pmd-raw-report.xml
maven.dashboard.aggregator.pmdviolations.label = PMD Violations
maven.dashboard.aggregator.pmdviolations.goal = pmd:report
maven.dashboard.aggregator.pmdviolations.description = Number of PMD violations
# Properties for the Simian duplicate lines aggregator
maven.dashboard.aggregator.simiantdl.script = ${maven.dashboard.aggregators.dir}/simiantdl.jelly
maven.dashboard.aggregator.simiantdl.artifact = ${maven.build.dir}/generated-xdocs/simian-report.xml
@@ -162,4 +183,4 @@ maven.dashboard.aggregator.simiantdl.description = Simian Total Duplicate Lines
]]></source>
</section>
</body>
</document>
</document>