|In this topic:|
The Klocwork plug-in for Eclipse helps you detect and fix issues before check-in.
Information and instructions below also apply to IBM Rational Application Developer for WebSphere. See also Supported IDEs.
You can also customize project settings, issue filters and analysis settings to your own preferences. For more information about these features, see the topics below.
For each coherent, buildable component that you work on, create a local project -- a repository for your analysis results and settings. You need to set up a project only once for each component you work on.
You need to capture and specify your build settings only if:
To capture build settings, see Creating a Java build specification.
To specify build settings:
The properties are saved for the selected project and used when you run your next analysis. You only have to specify build settings once for your project, as long as your updated build specification file remains in the same location.
You get the most from static code analysis when you connect a small local project to a larger project on the Klocwork Server. The small local project is analyzed quickly while incorporating Klocwork knowledge bases generated on the server where additional source files were analyzed (for example, shared libraries). Connecting to a server project also allows you to share issue status information with the integration build analysis and among team members. You can run a standalone desktop analysis, but the analysis only derives knowledge from the local project's source files.
You perform this step only once for each project.
Select the project and click in the toolbar.
When the analysis is complete, the Klocwork Issues view shows the analysis results.
In connected desktop projects, local issues are those you've introduced since the last integration build analysis; system issues are those that also exist in the integration build.
For a real defect:
For an issue that doesn't need to be fixed:
If you're connected to a project on the Klocwork Server, your changes are now visible to other developers, and in Klocwork Static Code Analysis. Your desktop project is also updated with any changes made by other developers. This happens even before another integration build analysis has been run.