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.