|Discussion Home | About | Threads By Date | Search|
FlexPMD is a tool that helps to improve code quality by auditing any AS3/Flex source directory and detecting common bad practices, such as:
1.Unused code (functions, variables, constants, etc.)
2.Inefficient code (misuse of dynamic filters, heavy constructors, etc.)
3.Over-complex code (nested loops, too many conditionals, etc.)
4.Over-long code (classes, methods, etc.)
5.Incorrect use of the Flex component lifecycle (commitProperties, etc.)
Copy the downloaded zip file and extract to your any location.
1. Open the command prompt and goto the extracted path.
2. Use the command: java -Xmx256m -jar flex-pmd-command-line-1.0.RC3.jar -s \src -o \dest and enter.
(Here src: represents the source path and dest: represents the destination path to save the report).
3. The report is generated in the xml format in the specified destination location.
This is very helful for writing code in adobe Coding standards and more efficiently.