summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorknut <>2006-03-08 22:58:44 +0000
committerknut <>2006-03-08 22:58:44 +0000
commitdfc35208915df9d4c054113a6a3fba86d72c4db1 (patch)
tree51076edcab057b898afca65cbc3194c9705e536d /build.xml
parentfeb3b574230f5148083d1b9827e5f39933d9769f (diff)
Added a ZendCodeAnalyzerTask and a analyze target to phing to be able to run the Zend Code Analyzer against the framework source
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 26c71384..674d8f7a 100644
--- a/build.xml
+++ b/build.xml
@@ -35,9 +35,11 @@
<property name="application.xsd" value="${doc.dir}/specs/application.xsd"/>
<property name="config.xsd" value="${doc.dir}/specs/config.xsd"/>
<property name="codecoverage" value="false"/>
+ <property name="zca" value="/usr/local/Zend/ZendStudioClient-5.1.0/bin/ZendCodeAnalyzer"/>
<taskdef name="phplint" classname="PhpLintTask" classpath="buildscripts/phing/tasks"/>
<taskdef name="xmllint" classname="XmlLintTask" classpath="buildscripts/phing/tasks"/>
+ <taskdef name="analyze" classname="ZendCodeAnalyzerTask" classpath="buildscripts/phing/tasks"/>
<!--
PHP Source Files in framework
@@ -251,4 +253,11 @@
<phplint file="${build.base.dir}/${prado.lite}"/>
<exec command="php -e ${prado.lite}" dir="${build.base.dir}" passthru="true" checkreturn="true"/>
</target>
+
+ <target name="analyze" description="Analyze PHP source files with Zend Code Analyzer">
+ <analyze analyzerPath="${zca}" disable="var-ref-notmodified,var-use-before-def,var-arg-unused">
+ <fileset refid="src"/>
+ </analyze>
+ </target>
+
</project>