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

Tips and tricks for Klocwork Desktop

Tips and tricks for Klocwork Desktop

The following topics provide tips and tricks for using Klocwork Desktop. You can also use Working sets to select a set of files and have that selection persist from one Klocwork Desktop session to another.

In the bottom right corner of Klocwork Desktop, there are two status icons. The icon represents the status of your connections to the licensing server and your Klocwork Server. The icon represents the synchronization status. The following table explains each possible state for these two icons:
Status icon What it means
No errors; connections are working as expected
Error with configuration; could be license or Klocwork Server related. Click on the icon to open your preferences and fix the problem.
No errors; project is not synchronized to the server
Synchronization currently in progress
Project is synchronized with the server and working as expected
Synchronization error; Local project could not be synced with the server

Start and connect to your remote project in one step

After you open Klocwork Desktop for the first time, you can launch Klocwork Desktop and connect to your remote project in one step. Run kwgcheck on the command line and specify either the remote configuration file you used in your last session, or the URL.

View only local issues

The Origin setting is relevant only for connected projects.

  1. From the Klocwork Issues view, click .
  2. To see only local issues, select Show local issues only:

Locate system issues

For connected desktops, you may need to investigate or fix a system issue. Klocwork Static Code Analysis provides a System ID for each detected issue. By default, the connected desktop does not identify issues by System ID in the issue list.

Show the System ID in your issue list

You can show the System ID in your issue list by configuring your columns.

  1. Click the Image:view_menu_icon_eclipse.png and select Configure columns.
  2. Select System ID.
    Any issue that was also detected in the integration build analysis will show a System ID.
  3. To view the issue in Klocwork Static Code Analysis, click the ID hyperlink.
  4. To view the most recent traceback for the issue on your desktop, double-click the issue in the Klocwork Issues view and investigate the identified traceback events.
  5. Fix the issue in your editor and save your file.
    If the issue disappears from the list, it's fixed.
Tip: If your issue list is long, use filtering and grouping to pinpoint the system issue.

Filtering and grouping

Tip: Make sure that your filters aren't set to "Show local issues only".
  1. Click in the Klocwork Issues view.
  2. Under Show issues for, select Selected element and its children.
    You can also filter by status, severity or owner to help pinpoint the issue.
  3. Click OK.
    When you select folders or source files in the left pane, the issue list displays only issues detected in the item(s) you select.
  4. If you still don't see the issue, click Image:view_menu_icon_eclipse.png and select Group by > Issue Type.
Tip: You can also group by taxonomy, severity, status , directory and owner. Select None to ungroup the issues. If you've grouped by taxonomy and the same issue was detected in each taxonomy, you'll see that one issue listed twice (in each applicable taxonomy). This is the only time you'd see the same issue listed twice.

Show or hide columns in the Klocwork Issues view

You can customize the Klocwork Issues view to show or hide columns or change the order in which they appear. For example, you can show the Ref or System ID columns, which are hidden by default.

To configure columns, click and select Configure columns.

Note: You can't hide or change the position of the Description column. It will always appear first.

Change your connected project, analysis and server settings

Go to Tools > Preferences > Server Settings.

The Server Settings dialog is where you can:

  • connect to a different Klocwork server host or port (when you need to connect your project with a different Klocwork server project)
  • change your License Server host and port
  • disable or re-enable: