partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit d8e24d3ef1abfaefd9f302df98204365e13e27f4
parent e3dcb092818fa7985f7aee57940f4b8f8ed5192c
Author: Felicitus <felicitus@felicitus.de>
Date:   Tue, 21 Sep 2010 21:13:17 +0200

Added phpmd and phpcpd targets - let's write better code!
Diffstat:
Mbuild.xml | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/build.xml b/build.xml @@ -82,6 +82,25 @@ </jsllint> </target> + <!-- Checks all PHP files for messy code. --> + <target name="phpmd"> + <phpmd rulesets="codesize,unusedcode,design,naming"> + <fileset dir="src/"> + <include name="**/*.php" /> + </fileset> + </phpmd> + </target> + + <!-- Checks all PHP files for copy/paste code --> + <target name="phpcpd"> + <phpcpd> + <fileset dir="src/"> + <include name="**/*.php" /> + </fileset> + <formatter type="pmd" outfile="reports/pmd-cpd.xml"/> + </phpcpd> + </target> + <target name="test"> <mkdir dir="tests/reports/phpunit"/>