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

Opening the standalone Configuration Editor

The standalone Configuration editor is used to enable and disable checkers, and to configure severities. It is accessed from the command line by running one of the following commands:

To create a new configuration file, run the command:

kwconfigeditor

The Configuration Editor will open in a new window and you can make any changes required. Once you are finished making changes, click OK . Now save the file where you can find it easily, then import it for your project using the kwadmin import-config command or by importing it through the Configuration tab for your specific project in Static Code Analysis.

For projects with an existing configuration file, run the command:

kwconfigeditor <path/to/mypconf.pconf>

In this scenario, make sure you are pointing to the configuration file for the project you wish to change.

Example

kwconfigeditor "C:\Klocwork\Server 18.1\projects_root\projects\csvtosql\rules\analysis_profile.pconf"

Changing issue severities

The severity label (for example, "Critical") is associated with a severity number. You can change the severity label to whatever is most meaningful.

When you make a change to a severity in one taxonomy, the change is applied to all taxonomies.

Ten severity levels are available. Klocwork checkers use only severities 1 through 4 by default, but you can edit the severity level for any checker.

To change a severity label:

  1. Open the standalone Configuration editor.
  2. Click the Severities tab.
  3. Click the text you want to change in the Name column.
  4. Type the new severity label. You can use alphanumeric characters, as well as space, minus, and underscore.
  5. Click OK .

To change the severity level of a checker:

  1. Open the standalone Configuration editor.
  2. On the Analysis Profile tab, expand an issue category to display the checker you want to change.
  3. Right-click the checker.
  4. In the pop-up menu, select Change Severity, and select a new severity level (for example, 2: Error).
  5. Click OK .