|In this topic:|
The Klocwork plug-in for IntelliJ IDEA helps you detect and fix issues before check-in.
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.
When the analysis is complete, the Klocwork for Java view shows the analysis results.
In the Klocwork for Java view:
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.