Tips and tricks for Klocwork Desktop Plug-in for Visual StudioTips and tricks for Klocwork Desktop Plug-in for Visual StudioHere are some tips and tricks to help you customize several different settings when you use a Klocwork Desktop plug-in for Visual Studio. Control which issues you seeWith our plug-ins for Visual Studio, you can customize how issues are displayed within your issue list. Visual Studio Extension:
Visual Studio addin:
Note: If you group by Taxonomy and the same issue was detected in multiple taxonomies, that issue is reported in each applicable taxonomy. This is the only situation in which the same issue is reported multiple times.
Locate server or system issues - Visual Studio ExtensionFor connected desktops, you may need to investigate or fix a server or system issue. In the Visual Studio Extension, Klocwork identifies server issues with the To locate a server or system issue:
Locate system issues - Visual Studio addinFor connected desktops, you may need to investigate or fix system issue. Klocwork provides a System ID for each detected issue. By default, the connected desktop does not identify issues by ID number in the issue list. To locate a system issue in the Visual Studio addin:
Recover an issue you ignoredTo recover an issue that you previously ignored: Visual Studio Extension:
Visual Studio addin:
Enable and disable checkersYou enable and disable checkers in the Configuration Editor, accessed through the Klocwork Properties dialog. If your solution contains both C/C++ and C# projects, you configure C/C++ issues in the C++ Projects tab, and C# issues in the C# Projects tab. Each Configuration Editor shows only checkers and taxonomies applicable to the language. Taxonomies containing both C/C++ and C# checkers appear in each Configuration Editor, but show only those issue types applicable to the language. To enable or disable checkers:
Change License Server settingsHost 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 (Klocwork > Options > Klocwork > General). Disconnect from the Klocwork ServerTo disconnect your project or workspace from the server project:
Customize or disable on-the-fly analysisBy default, on-the-fly analysis is enabled for C/C++ projects. On-the-fly analysis is not supported for C# projects. Analysis runs every time you open or pause while editing a file. If you prefer to have it run every time a file is saved, do the following:
Now on-the-fly analysis runs when you save a file. Also, you can set if analysis is continued when a document is closed. From the Analysis tab, enable or disable the option Continue analysis after the file has closed. To disable on-the-fly analysis:
Now, to run an analysis, you must right-click a solution and select Analyze Solution or right-click a project and select Analyze Selection. Disable or enable on-the-fly analysis issue markers in editorTo disable the left-margin icons, click Klocwork > Options > Klocwork > General, click the Appearance tab and clear the Show marker on left margin for issues check box. You can also disable "underlining" as an additional marker. View more information about a detected issueTo view more information about a detected issue, select the issue in the Klocwork Issues window and select Klocwork > Windows > Klocwork Issues. The Klocwork Issues Information window provides detailed information about each issue, for example, the ID, File, Line, Column, Description, Severity, and Owner. If the issue was detected in an integration build, the ID field displays a number. For the Visual Studio Extension, the ID field displays "Desktop" if the issue was detected only in your desktop project. Server issues are indicated by the For the Visual Studio addin, the ID field displays "local" if the issue was detected only in your desktop project. |