Questions tagged [flex-pmd]

FlexPMD is a tool that helps to improve code quality by auditing any AS3/Flex source directory and detecting common bad practices

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.

8 questions
2
votes
1 answer

Is there a tool that can track unused code automatically

I currently have 6 different flex applications (widgets) that run on a main page. They all depend on one common library project. I am currently cleaning up the codebase quite dramatically and it is hard to keep overview this way especially since I…
Dennis Jaamann
  • 3,547
  • 2
  • 23
  • 42
1
vote
2 answers

FlexPMD - Override Phase & Goal

I have integrated FlexPMD into my pom.xml file but I need to change the phase & goal in which the plugin is run. Currently it runs in the site phase but I need it to run in the test or compile phase. Is this possible? My plugin code is as…
Ben Johnson
  • 375
  • 2
  • 7
0
votes
1 answer

FlexPMD Violations Viewer - how to view results directly

So I started using FlexPMD for static code analysis, and I want to add it to my team's build process. I have it running nicely from a shell script, and can view the results by clicking a button and uploading the desired (pmd.xml) output file in the…
Sensei James
  • 2,617
  • 30
  • 36
0
votes
2 answers

How to correct the objection about dymanic Object type by FlexPMD?

I have the code in one of my flex file used as labelFunction in a DataGrid. When I run the FlexPMD to do the code review, it generates an objection about the dynamic type object used in the following method signature and it suggests to use strongly…
sanjoy roy
  • 287
  • 1
  • 3
  • 4
0
votes
1 answer

how to handle Flex PMD errors in flex?

while running the flex PMD, it is throwing some errors in the below line. var strHandle:String = ConfigXMLModelLocator.getInstance().handle; var appHandle:String = ConfigXMLModelLocator.getInstance().handle; ->Error displaying here. var…
RKCY
  • 4,095
  • 14
  • 61
  • 97
0
votes
1 answer

Flex PMD not Working anytime?

i am surprising after seeing the result of FlexPMD. i installed FlexPMD as zoltanb said me. I have a Project with 2500 Files approximately and as I remember, i had a lots of duplicate code and not commented code means that a line is commented which…
-1
votes
1 answer

Skip Maven Flex PMD

We are looking for an option in flex-pmd-maven-plugin to skip the pmd execution temporarily using a command-line option. The maven pmd plugin has a -Dpmd.skip=true option. I am looking for a similar kind of thing for flex-pmd-maven-plugin too. …
-3
votes
1 answer

How can we use Flex PMD for Flex Code Review

How to use Flex PMD for Flex Code Review like the Eclips Jupiter Code Review?
ruoxi
  • 9
  • 1