Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Integrating a project with your SCM

Setting up a post-checkin review is done on a project-by-project basis, so run this procedure for each Klocwork project you want to make available in Klocwork.

You can use an existing project on the Klocwork Server, or you can create an empty one (without a build specification or analysis).

  1. If you're not integrating an existing project, create a new project on the Klocwork Server with kwadmin create-project:
    kwadmin --url http(s)://<klocwork_server_host>:<klocwork_server_port> create-project <project_name>

    For example:

    kwadmin --url http://server01:8080/ create-project my_project
  2. Then, load the project with kwscm:
    kwscm --url http://<klocwork_server_host>:<klocwork_server_port>/zlib [kwscm_options] <scm> [scm_options] <source_path>
    Note: Depending on your choice of SCM, you may have to be in your SCM repository while using this command.
    For example:
    kwscm --url http://server01:8080/my_project svn path\to\file

Troubleshooting

If kwscm fails, it prints out the command that was used, the output of the command and the return code. If you need more information, add the --verbose option to your original command line. If the error message indicates a problem that you're unable to troubleshoot, contact Customer Support.