Skip to content
Browse files

Don't run PHPMD on 3rd party libraries.

  • Loading branch information...
1 parent 3827db3 commit 140507310abe599585672c66b6da9e5e083820ef @realityking realityking committed Nov 6, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 build.xml
  2. +1 −1 build/phpmd.xml
View
3 build.xml
@@ -2,6 +2,7 @@
<project name="joomla-platform" default="build" basedir=".">
<property name="source" value="libraries"/>
+ <property name="joomlasource" value="libraries/joomla,libraries/platform.php,libraries/loader.php,libraries/import.php"/>
<target name="clean"
description="Clean up and create artifact directories">
@@ -50,7 +51,7 @@
<target name="phpmd"
description="Generate pmd.xml using PHPMD">
<exec executable="phpmd">
- <arg path="${source}" />
+ <arg path="${joomlasource}" />
<arg value="xml" />
<arg value="${basedir}/build/phpmd.xml" />
<arg value="--reportfile" />
View
2 build/phpmd.xml
@@ -7,7 +7,7 @@
xsi:noNamespaceSchemaLocation="
http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
- My custom rule set that checks my code...
+ Custom rule set for the Joomla Platform project.
</description>
<!-- Import the entire unused code rule set -->

0 comments on commit 1405073

Please sign in to comment.
Something went wrong with that request. Please try again.