Skip to content

Instantly share code, notes, and snippets.

@IngmarBoddington
Created April 25, 2013 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IngmarBoddington/5458928 to your computer and use it in GitHub Desktop.
Save IngmarBoddington/5458928 to your computer and use it in GitHub Desktop.
phpmd / PHP_Depends - Setup / Use
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