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

Kwchangestatus

kwchangestatus allows you to connect to the Klocwork Server and cite defects from the command line. Note that this utility pulls a Static Code Analysis license.

Usage

kwchangestatus --url http://<klocwork_server_host>:<klocwork_server_port>/<project> --status <status>

You can use an arguments file with kwchangestatus. You can create an arguments file to specify your command line arguments. Each argument must be specified on a separate line. (If the arguments file contains multibyte characters, the file must be UTF-8 encoded.) The usage is:

kwchangestatus @<arguments-file> 

Examples

To set the status to 'ignore' for issues 7, 9 and 18, run the following:

kwchangestatus --url http://localhost:8080/zlib --status Ignore 7,9,18

To assign issue 5 to 'jsmith', run the following:

kwchangestatus --url http://localhost:8080/zlib --owner jsmith 5

Options

Name Short name Description
--help   display command-line help
--url http(s)://<host>:<port>/<project>  

URL for a project on the Klocwork Server, of the form http://<server_host>:<server_port>/<project>

Use https:// if a secure Klocwork Server connection has been configured.

--status   specify the status you want to update the issue to. For a list of acceptable statuses, click here.
--owner   specify the owner you want to assign the issue(s) to. If a user name contains spaces, surround it with double quotes ("). To invite a participant with this option, the participant must already have logged in to Static Code Analysis.
--comment   specify a comment that you want to assign to the issue(s). If the comment contains spaces, surround it with double quotes (").
--version   show version