Skip to content
Snippets Groups Projects
Commit 0eda125b authored by Demian Katz's avatar Demian Katz
Browse files

Configured PHPMD.

parent ffb47725
No related merge requests found
...@@ -45,10 +45,16 @@ ...@@ -45,10 +45,16 @@
<phingcall target="phpunit"/> <phingcall target="phpunit"/>
<phingcall target="phpdoc"/> <phingcall target="phpdoc"/>
<phingcall target="phpcpd"/> <phingcall target="phpcpd"/>
<phingcall target="phpmd"/>
<phingcall target="pdepend"/> <phingcall target="pdepend"/>
<phingcall target="phploc"/> <phingcall target="phploc"/>
</target> </target>
<!-- Report rule violations with PHPMD (mess detector) -->
<target name="phpmd">
<exec command="phpmd ${srcdir}/module xml ${srcdir}/tests/phpmd.xml --exclude ${srcdir}/module/VuFind/tests --reportfile ${builddir}/reports/phpmd.xml" />
</target>
<!-- Measure project with phploc --> <!-- Measure project with phploc -->
<target name="phploc"> <target name="phploc">
<exec command="phploc --log-csv ${builddir}/reports/phploc.csv ${srcdir}/module" /> <exec command="phploc --log-csv ${builddir}/reports/phploc.csv ${srcdir}/module" />
......
<?xml version="1.0"?>
<ruleset name="PHPMD rules for VuFind" xmlns="http://pmd.sf.net/ruleset/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" xsi:noNamespaceSchemaLocation=" http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>PHPMD rules for VuFind</description>
<rule ref="rulesets/codesize.xml" />
<!-- <rule ref="rulesets/controversial.xml" /> -->
<rule ref="rulesets/design.xml">
<exclude name="EvalExpression" />
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable" />
<exclude name="ShortMethodName" />
</rule>
<rule ref="rulesets/unusedcode.xml" />
</ruleset>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment