In this section:
Parasoft supports PHP by integrating with PHP Mess Detector (PHPMD), an easy-to-configure front-end for the raw PHP Depend metrics. PHPMD checks PHP source code for several potential problems, such as, possible bugs, suboptimal code, overcomplicated expressions, and unused parameters, methods, and properties. Visit the PHPMD website for additional information: https://phpmd.org.
The Parasoft PHPMD extension processes the PHPMD result file, generates reports showing violations and severities for the code authors, and sends the data to Parasoft DTP. DTP presents the data in widgets, reports, and other interfaces that enable you to prioritize violations, place them into remediation workflows, and monitor progress toward improving the code quality.
multilanguage-pack.sh -tool phpmd -results.file "c:\YourProject\phpmd-results.xml" -source.dir "C:\YourProject\src" |
Internal technical log files from the Multi-Language Pack execution are generated in the <INSTALL>/.mlp subdirectory.
The following parameters are required.
This setting specifies the Parasoft extension to execute. Use -tool
phpmd
to run the PHPMD extension.
This settings specifies the path to the XML file containing PHPMD execution results.
This parameter specifies the path to the source code of the project under test. This is used to collect source control metadata (e.g., authorship, last updated, etc.) for DTP reporting and processing.