Copyright (c) 2011 Doron Katz. All rights reserved. DoronKatz registered under ABN 68 954 062 611. Apple, the Apple logo, iPod, iPod touch, and iTunes are trademarks of Apple Inc., registered in the U.S. and other countries. iPhone is a trademark of Apple Inc. App Store is a service mark of Apple Inc. Theme by Cory Watilo

How to work with FlexPMD

FlexPMD is one of those open-source projects in the thriving community that is Flex, that I find to be quite useful, especially for the enterprise world. Essentially, this tool, which could either be an eclipse-plugin, embedded within ant or through other third-party tools, is an auditor that aims to improve code-quality, traversing your ActionScript/Flex directories and spots out bad-practice code, with the ability to add your own custom rules.

It's sister tool which also comes in the package, FlexCPD, detects copy/paste code which might seem 'suspect' utilising theJavaCPD engine to detect such duplications. Upon running these tools, you get a detailed report in XML or charted via Hudson/Sonar, to assist in finding the code, realising the trends and so forth.

Installing/Setting up FlexPMD
You set up FlexPMD by following the instructions set here

Creating Rules
To create rules you would use the FlexPMD RuleSet creator which is in fact a Flex App, 

Outputting Results
You output the results using the Violation Viewer.

Posted Image

(courtsey of video-flash.de)