企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# C.116 ZendCodeAnalyzerTask The `ZendCodeAnalyzerTask` analyze PHP source files using the Zend Code Analyzer tool that ships with all versions of Zend Studio. Table C.150:聽Attributes NameTypeDescriptionDefaultRequired`analyzerPath``String`Path to Zend Code Analyzer binaryn/aYes`file``String`Path to PHP source filen/aNo`disable``String`Disable warnings separated by comman/aNo`enable``String`Enable warnings separated by comman/aNo`haltonwarning``Boolean`Stop the build process if warnings occurred during the run. `false`No C.116.1 Example ``` <zendcodeanalyzer analyzerPath="/usr/local/Zend/ZendStudioClient-5.1.0/bin/ZendCodeAnalyzer" file="SomeClass.php"/> ``` Analyze one PHP source file with all default warnings enabled. ``` <zendcodeanalyzer analyzerPath="/usr/local/Zend/ZendStudioClient-5.1.0/bin/ZendCodeAnalyzer" disable="var-ref-notmodified,if-if-else"> <fileset dir="."> <include name="**/*.php"/> </fileset> </zendcodeanalyzer> ``` Analyze a set of PHP source files and disable a few warnings. C.116.2 Supported Nested Tags - `fileset`