Overview

FlexPMD

FlexPMD uses a part of PMD, its Java well known counterpart.

Overview

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.)

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:

MindMap


More information


Download

Visit the Downloads page to view the downloads available.


Known issues/limitations

  • Stack traces can be thrown during parsing. They are caught though during analyzing the code base, and hence fails over
  • If you have a blank view while running the FlexPMD Eclipse plugin, then you need to add the following parameter in the Eclipse FlexPMD preferences, under "Java command line": -Djava.io.tmpdir=C:\Users\XXX\AppData\Local\Temp

Getting Involved

There are many ways to contribute to FlexPMD:

More information



Discussion

  • Anonymous - 2012-10-28
    Post awaiting moderation.
  • Anonymous - 2012-10-28
    Post awaiting moderation.
  • Anonymous - 2012-12-27
    Post awaiting moderation.
  • Anonymous - 2014-05-30
    Post awaiting moderation.
  • Andrew Hunt

    Andrew Hunt - 2014-09-15

    Is this project dead or what? I can't download the files, even with my sourceforge creds. I get another login screen that won't take the sourceforge creds.

     
  • Anchal Patel

    Anchal Patel - 2014-09-24

    not able to download

     
  • Mateusz Bęcki

    Mateusz Bęcki - 2015-01-07

    I found FlexPMD on apache github (https://github.com/apache/flex-utilities/tree/develop/FlexPMD) maybe this will help ;)

     
    • Anonymous - 2015-04-13
      Post awaiting moderation.


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks