Matching issues across projects

You can run the cross-project issue matching tool, kwmatch, to match defects among projects that share the same source code. Matching issues are displayed in the issue details in Validate:

Image:Kwmatch issue details.png

To match issues across projects:

  1. Set up an issue matching group with kwmatch init:
    kwmatch init
    

    This command sets up an issue matching group with the default name, xsync, on the default Database Server host and port, localhost:3306.

  2. Add projects to the issue matching group with kwmatch add:
    kwmatch add http://myserver:8080/demosthenes http://myserver:8080/demosthenes_branch_1 http://myserver:8080/demosthenes_branch_2
    

    This command adds three projects to the default issue matching group, xsync. Note that you must use project URLs, not project names, in the command line. The projects do not need to be on the same Klocwork Server or in the same projects_root directory.

    You will see output similar to the following:

Adding http://myserver:8080/demosthenes to issue matching group xsync@localhost:3306
Synchronizing project http://myserver:8080/demosthenes...
Adding http://myserver:8080/demosthenes_branch_1 to issue matching group xsync@localhost:3306
Synchronizing project http://myserver:8080/demosthenes_branch_1...
Adding http://myserver:8080/demosthenes_branch_2 to issue matching group xsync@localhost:3306
Synchronizing project http://myserver:8080/demosthenes_branch_2...
You can remove projects from an issue matching group with kwmatch remove.