![]() |
OpenMake Meister |
PMD scans Java source code and looks for potential problems like:
• Possible bugs - empty try/catch/finally/switch statements
• Dead code - unused local variables, parameters and private methods
• Suboptimal code - wasteful String/StringBuffer usage
• Overcomplicated expressions - unnecessary if statements, for loops that could be while loops
• Duplicate code - copied/pasted code means copied/pasted bugs
Use this Workflow Activity to add PMD to your Workflow Process.
The source code directory is passed in as a parameter
The source to include is passed is as a parameter
The source to exclude is passed is as an optional parameter
Install Instructions:
1. Download the latest version of PMD from sourceforge https://sourceforge.net/project/showfiles.php?group_id=56262&package_id=51441&release_id=632850
2. Select the pmd bin zip file
3. Unzip the file to a local directory on your hard drive
4. Once unzipped copy the jar files from the lib directory to <MEISTER_INSTALL_PATH>/client/tools/pmd/lib