List of PHPMD Rulesets

As I use PHPMD from time to time only (but more and more often) I needed to lookup the default ruleset names from the filesystem. As google is faster than a search on the harddrive, here they are for future reference:

  • codesize
  • design
  • naming
  • unusedcode

I personally like the ability to detect unused code and give some general hints. PHP Mess Detector can be easily installed via a pear channel.

This entry was posted in PHP Code Smells, PHP Development, PHP Development, Pressed, Tools, Uncategorized and tagged , , . Bookmark the permalink.

4 Responses to List of PHPMD Rulesets

  1. Gabriel Koen says:

    You just saved me a bunch of time.🙂

  2. We’re just starting to get used to phpmd (along with phpcs/php_codesniffer). They are both useful tools to write better quality/maintainable PHP code.

  3. chothet says:

    Dear sir, I want to know how to modify threshold value 10 for cyclomatic complexity in code size rule. I want to count decision nodes that are greater than 0 and not greater than 10.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s