PMD Tool to Analyze the Java Code - dineshmadhup/Core-Java GitHub Wiki
How to use PMD tool with NetBeans IDE to ANALYZE Java Code
Author: Dinesh Madhup
December 12, 2016
Step by Step instructions:
PMD:
It is a open source tool available to analyze the source code. Here is the official link – https://pmd.github.io This tool is available as a plugin in NetBeans IDE
Step:1 Open your pre-installed Netbeans IDE then go to Tools => Plugins. Select Available Plugins and search for EasyPMD. You will get one. Select the checkbox and click Install.
Step:2 You will see following window which tells you EasyPmd [version number] is going to install. Just Click Next.
Step:3 This window is about License agreement. Accept the license agreement and click Install.
Step:4 You will see following warning message saying its from third party. Don’t worry, Just press Continue.
Step:5 Wait until you see the following completion window and click the finish button. You are Done. Hurray…..
Analyzing the Code with Pmd
Open any java code which you would like to analyze. Again select WINDOW from top window and click Action Items.
Result: You will see the output after analyzing your complete code.