PHPMD Code Review Tool Command WAMP
I am sharing my code review command to verify PHP syntax and code using PHPMD tool. May this be helpful for someone.
To install PHPMD from GIT, use below command:
~ $ git clone git://github.com/phpmd/phpmd.git
Below command takes PHP file to review and outputs review file
~ $ phpmd [PHP FILE PATH] codesize,unusedcode,naming --reportfile [OUTPUT-FILE]
My Example Command is below:
C:\wamp\www\phpmd\vendor\bin> phpmd D:\\ modules\ xml codesize,unusedcode,naming --reportfile c:\wamp\www\phpmd\code-review
No comments:
Post a Comment