Getting started with kwcheck for Java
Getting started with kwcheck for Javakwcheck is a desktop analysis tool for C/C++ and Java developers using IDEs and text editors that aren't supported by Klocwork in the form of an IDE plug-in. You can also try the GUI tool Klocwork Desktop. Set up a local projectSet up a local project and connect it to a server project with kwcheck create. kwcheck create --url http://server2:8080/my_project Perform this step only the first time. Capture your build settingsCapture build settings with kwant . The following example applies to projects built with Ant 1.7.x or later. If your project is build with Ant 1.6.x, see Manual integration -- editing the Ant build file. If your project contains .jsp files, see Build specifications for projects that contain .jsp files. To create a build specification with kwant:
If you're a Maven user, you can use kwmaven to capture your build settings. The following example applies to projects built with Maven 1.5 or later. To create a build specification with kwmaven:
Keep your build specification up to date: Whenever you add files, remove files or change compilation flags, create a new build specification with kwant or kwmaven and import it into your project with kwcheck import. See Creating a Java build specification for more information about build specifications. Import the build specificationImport the build specification with kwcheck import. kwcheck import my_project.out Run the analysis
See Java checker reference for documentation on detected issues. Fix defects and ignore the rest
|