Created
April 25, 2013 10:48
-
-
Save IngmarBoddington/5458928 to your computer and use it in GitHub Desktop.
phpmd / PHP_Depends - Setup / Use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installation using pear: | |
- pear channel-discover pear.pdepend.org | |
- pear install pdepend/PHP_Depend | |
- pear channel-discover pear.phpmd.org | |
- pear install --alldeps phpmd/PHP_PMD | |
Then to run (with all default rulesets): | |
Text to stdout: | |
phpmd <file/directory> text codesize,unusedcode,naming,controversial,design | |
HTML file: | |
phpmd <file/directory> html codesize,unusedcode,naming,controversial,design > <output> | |
References: | |
- http://pdepend.org/ | |
- http://phpmd.org/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment