Installing the Visual Studio Code extension
To install the Klocwork extension for Visual Studio Code:
- Download the applicable Klocwork Desktop tools package (kw-desktop-tools.<version>.<platform>.zip) from Support downloads.
Log in to the site using your Rogue Wave Support Center user ID and password. If you do not currently have a Rogue Wave Support Center user ID and password, register as a new user. Active maintenance is required to access this page.Note: You can download the zip package directly from the Downloads section in the Klocwork Portal if your administrator has deployed the desktop analysis plug-ins. See Downloading and deploying the desktop analysis plug-ins for more information.
- Once downloaded, unzip the package into your preferred location.
- In Visual Studio Code, click Extensions > ... and select Install from VSIX.
- Navigate to the downloaded .vsix file (For example, 'kwvscodeextension-20.4.55.vsix') and select OK.
- Refresh and the extension now appears in your Extensions panel.
Configuring your settings
- In VS Code, open the Extensions panel.
- Right-click the Klocwork extension, select Settings. You can configure the following:
- Continuous Analysis Enabled allows continuous analysis to run against your project; remove this option if you prefer to run analysis on demand.
- Display Klocwork Analysis Results When Workspace Loaded determines which Klocwork diagnostics are displayed when opening a workspace with previously generated analysis results.
- Help: Source allows you to specify where to access Klocwork checker help from (Online or Server). Default is set to online.
- Klocwork Tools Location allows you to specify the location of the Klocwork command line tools; This is required to run analysis (For example, 'C:\Klocwork\Command Line 21.1\bin'). Note that the extension is also able to pick up this setting from the PATH environment variable. For instructions on how to install these tools, see Installing the Build Tools package.
- Logging: Level determines the level of details provided in the Klocwork output log.