If you prefer to work with an IDE or text editor that we don't support, you can use kwcheck to set up a local project and find defects by using the Klocwork command line tools.
Prerequisites:
- The Klocwork Server must be installed and running.
- The Klocwork Command line tools must be installed.
- You have access to a project that you can use as a sample.
-
Open a command window and navigate to the directory that contains your project.
-
Set up a local project:
kwcheck create
-
Set the path to your license:
kwcheck set license.host=<License_Server_host> license.port=<license_server_port>
-
Generate your build specification with kwinject <build_command>, for example:
kwinject make
- Analyze your code:
kwcheck run -b kwinject.out
-
View detected issues:
kwcheck list -F detailed