Quick Start: Command line tools

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.

  1. Open a command window and navigate to the directory that contains your project.
  2. Set up a local project:
    kwcheck create
  3. Set the path to your license:
    kwcheck set license.host=<License_Server_host> license.port=<license_server_port>
  4. Generate your build specification with kwinject <build_command>, for example:
    kwinject make
  5. Analyze your code:
    kwcheck run -b kwinject.out
  6. View detected issues:
    kwcheck list -F detailed

Related Topics Link IconSee also