KwmatchThe kwmatch command matches detected issues across projects in an issue matching group. Identical issues in other projects in the same group are displayed in the issue details in Klocwork Static Code Analysis. This is useful when projects share source code, as in the case of branches. An issue that occurs in multiple projects likely has a high priority. The projects can be in different projects_root directories, as well as on different Klocwork Server hosts. See Managing project branches for how-to information. Options that apply to all subcommands
InitUse the init subcommand to create an issue matching group: kwmatch [<options>] init [--force] Example In this example, we create an issue matching group named "myprojectgroup". Our Database Server is running on the host myserver on the default port, 3306. The user who started the Database Server is the default, kw, and we have not set a password for the database. kwmatch --dbhost myserver --dbname myprojectgroup init Options
AddUse the add subcommand to add one or more projects to an existing issue matching group. kwmatch [<options>] add <project_URL> [<project_URL>...] Example In this example, we add three projects to "myprojectgroup". Our Database Server is running on the host myserver on the default port, 3306. The user who started the Database Server is the default, kw, and we have not set a password for the database. kwmatch --dbhost myserver --dbname myprojectgroup add http://myserver:8080/myprojectmain http://myserver:8080/myprojectbranch1 http://myserver:8080/myprojectbranch2 ListUse the list subcommand to print out the list of projects in the matching group: kwmatch [<options>] list RemoveUse the remove subcommand to remove the reference to the issue matching group from the project: kwmatch [<options>] remove <project_URL> [<project_URL>...] where
Example In this example, we remove one or more projects from an issue matching group. Our Database Server is running on the host myserver on the default port, 3306. The user who started the Database Server is the default, kw, and we have not set a password for the database. kwmatch --dbhost myserver --dbname myprojectgroup remove http://myserver:8080/myprojectbranch2 When you run the remove subcommand, if the database is unavailable for any reason or has been deleted, the system will prompt you with a command line message such as, "ERROR: Database does not exist. Try using '--force'". kwmatch remove --force http://myserver:8080/myprojectbranch2 Options
|