Create a Java Knowledge Base file in Eclipse
This section explains how to create a Java Knowledge Base (JKB) file in Eclipse.
Add methods to the JKB file from the editor, Package Explorer, or Outline view.
- To create a JKB file for a project instead of a workspace, enable project-specific settings:
- Right-click the project.
- Select Properties > Klocwork > Enable project-specific settings.
- Double-click an issue in the Klocwork Issues view to highlight it in the source code.
- Right-click the method in the editor and select Klocwork > Add to Knowledge Base.
- Add the appropriate JKB annotation, then save the file.
- Rerun Klocwork analysis to test your JKB file.
Use traceback information in the Klocwork Details view to highlight methods of interest.