QAPlug CheeckStyle, FindBugs and PMD - dineshmadhup/Core-Java GitHub Wiki
Dealing with QAPlug for Java code, We learn three tools together which is checkstyle, FindBugs and PMD. Checkstyle: Using this tool, your code is constantly inspected for coding standard deviations. FindBugs: It is open source tool available to detect bugs in code and provide you suggestions for fix. PMD: It is open source tool available to analyze the source code.
Open your pre-installed IntelliJ IDEA IDE then press CMD + Shift + A (For MAC) or Ctrl + Shift + A (For Windows) and hit enter. Type settings in "Enter Action: " box and hit enter again as shown in below diagram.
After you hit in step-1, you will see following window In Plugins search box, type QAPLUG and hit Enter.If you see No plugins found as in below diagram, just click "Search in repositories" as shown in below screen capture.
In this step, you can the list of plugins in which you click Install button one by one. You can ignore QAPlug-Hammurapi, which is not our topic of interest.
As soon as you finish to install QAPlug, you select next, for example QAPlug-Checkstyle and Install. And So on...
Open your project which you would like to analyze. Right click your project and select ANALYZE => ANALYZE CODE
In this step, its your choice to select the project you would like to test. I recommend you to select "whole project".
You will see the output after analyzing your complete code.
If you see the analysis result on right side: Problem found: 1 FindBugs: 0 Checkstyle: 1 PMD: 0
The warning message is: Method 'home' is not designed for extension - needs to be abstract, final or empty. Let me make home method final and run the test again.
You see...there is no problems at all now. Thank you QAPlug for making our life easier. Thank you.