diff --git a/build.xml b/build.xml index 34b4a123fdbb5121b4a2288c89e8c4514ba9143d..f06df7e7048fea6963d200f7fc3ead9795554aef 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 -->