Definition from the Software Quality Environment (SQE) home page:
"SQE attempts to provide first-class NetBeans IDE integration for different software quality tools".
http://kenai.com/projects/sqe/pages/Home
The different tools contained in the package are:
This enables the developers to have code defect analysis, metrics, and dependency analysis.
Please be aware that this is an unstable module. Use at your own risk.
In order to use SQE we will first need to install the plugins.
Note that SQE is added to the list of Configuration of Update Centers.
The Toolbar is updated with both icons and another entry named Quality, as seen in the following screenshot:
SQE can be used with your current project or any valid NetBeans project, but for this recipe we will use one of the projects that come bundled with NetBeans itself.
Select the ServletExamples project and on the toolbar click on Quality then Code Defects and finally Run All Quality Tools.
Let SQE perform the code checks.
SQE controls and views are displayed under the Java editor in the main view of NetBeans.
In our example PMD and FindBugs are shown with separate windows each.
Inside of each of those views, PMD or FindBugs, there are controls for how the visualization of the collected data is presented.
Controls such as:
The PMD view presents a list of rule sets, for example AppendCharacterWithChar
that were triggered in the project when code checks were performed. Opening one of these rule sets will present the developer with a list of classes, organized by packages, and the location of the code that is not in accordance with the rules.
Double-clicking one of these results will take the developer to the class itself, specifically to the line where the problem is.
The right-hand pane of the PMD view also gives advice on how to eliminate this inconsistency.
FindBugs is the same:
Possible bugs that were introduced in the code are listed. On the left-hand side the location and code snippet, and on the right-hand side the explanation of the problem.
The organization of FindBugs is a little different from PMD view but the principle of showing a guiding text on the right-hand side of the pane, and where to find the defect, is unaltered.
The quality control center displays a nice graphical snapshot of current problems with the project. Multiple projects can also be selected on this view. To access it, please click on Window, then Quality, and QCC.
It is a nice way to compare previous iterations of the project, to see how many issues are left and how many were corrected.
Complete with a code defect dashboard where a bar graph shows the issues by method and a code defect timeline.
18.221.172.50