Jump to content
How to work with FlexPMD
Submitted by Doron Katz
Posted Jul 26 2010 06:25 PM
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 the JavaCPD 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.
To create rules you would use the FlexPMD RuleSet creator which is in fact a Flex App,
You output the results using the Violation Viewer.
(courtsey of video-flash.de)