views:

72

answers:

3

Can anyone recommend a static analysis/code complexity/code metrics tool for Adobe Flex (MXML and Actionscript)? Something like Sonar or Clover?

A: 

Maybe FlexPMD can be an answer.

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.)
Patrick
Thanks thats what I ended up coming up with too.
A: 

Sonar Flex Plugin looks pretty good.

JayC
A: 

Adobe's Flex PMD is a good start.

Gregor Kiddie