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 Plug-in for Eclipse

Tips and tricks for Klocwork Desktop Plug-in for Eclipse

Here are some tips and tricks to help you customize several different settings when you use the Klocwork Desktop plug-in for Eclipse.

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 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 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.

Disable or enable continuous analysis

C/C++ only: Go to Window > Preferences > Klocwork > Settings. When continuous analysis is disabled, you can analyze the whole project, subdirectory or selected files.

Analyze the project, subdirectory or selected files

You must disable continuous analysis to manually trigger an analysis (go to Window > Preferences > Klocwork > Settings).

Select the project, subdirectory or group of files in the Project Explorer and click the Klocwork icon on the toolbar .

Disconnect from the Klocwork Server

  1. In the project properties, expand Klocwork.
  2. Select Enable project specific settings.
  3. Click the Synchronization tab.
  4. Clear the Klocwork Server host and port fields.

Change License Server settings

Host and port information for the License Server is typically set during installation. However, if this information changes, you need to update the information in the Settings dialog (Window > Preferences > Settings).

Clean Klocwork issues from the view and trigger a full project analysis

Typically, the "Clean" feature is not part of your Klocwork workflow, but it is useful if you want to trigger a full project analysis.

"Clean" removes all issues, plus any status changes and comments you have made. The next time you run an analysis or synchronize with the server project (for connected projects), the Klocwork Issues view will display detected issues.

Right-click a project in the Project Explorer, select Klocwork > Clean, and click OK to confirm.