FlexPMD uses a part of PMD, its Java well known counterpart.
FlexPMD is a tool that helps to improve code quality by auditing any AS3/Flex source directory and detecting common bad practices, such as:
A report is produced describing the violations of a given rule set. FlexPMD includes a rule set that is broad ranging and continually growing. It is also straightforward to create new rules and users are encouraged to do so.
FlexPMD can currently be invoked from:
Currently, FlexPMD produces a XML report by default, plus an HTML report when invoked by the Maven site plugin. The XML report can then be consumed by any PMD reports pretty printers (like the PMD hudson plugin).
An Eclipse plugin is under development.
Here is the kind of report you can have as an output of FlexPMD (violations in given file):
and a trend of the violation:
Visit the Downloads page to view the downloads available.
There are many ways to contribute to FlexPMD: