FlexPMD

FlexPMD is by far the coolest project I’ve seen lately (believe me it has nothing to do with the fact that was created by the guys from Adobe Technical Services).

What does it do? Brace yourself, because I think it is a dream come true for anyone who loves well-architected Flex/Flash applications.

FlexPMD is a tool that helps to improve code quality by auditing any AS3/Flex source directory and detecting common bad practices, such as:

* Unused code (functions, variables, constants, etc.)
* Inefficient code (misuse of dynamic filters, heavy constructors, etc.)
* Over-complex code (nested loops, too many conditionals, etc.)
* Over-long code (classes, methods, etc.)
* Incorrect use of the Flex component lifecycle (commitProperties, etc.)

You ca use it from the command line or Maven/Ant/Automator on Mac, and it has a set of rules. These rules can be extended by anyone, and thus the tool can evolve.

You can read more on the project home page.

2 thoughts on “FlexPMD

  1. Maybe it could find itself integrated into flex somehow. I see it has “considering an eclipse plugin” which is surprising that it didn’t start that way.

  2. @Jeffrey Gilbert

    It would be great to be part of the Flash Builder 4, isn’t it?

    I think it make sense to start with command line tools only, as developing an Eclipse plug-in wouldn’t add much functionality (I mean you still get the same reports, maybe it is just a little bit easier to kick in).

Leave a Reply

Your email address will not be published. Required fields are marked *