From bb8eb4af18891831adc8f21b575d818cce7742e8 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 16 Jan 2013 10:04:15 -0500 Subject: [PATCH] Added phpcpd task. --- build.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.xml b/build.xml index 34b4a123fdb..f06df7e7048 100644 --- a/build.xml +++ b/build.xml @@ -44,6 +44,12 @@ <phingcall target="phpcs"/> <phingcall target="phpunit"/> <phingcall target="phpdoc"/> + <phingcall target="phpcpd"/> + </target> + + <!-- PHP copy-and-paste detection --> + <target name="phpcpd"> + <exec command="phpcpd --log-pmd ${builddir}/reports/pmd-cpd.xml --exclude ${srcdir}/module/VuFind/tests/* ${srcdir}/module" /> </target> <!-- PHP CodeSniffer --> -- GitLab