Installing the IntelliJ IDEA/Android Studio/CLion plug-ins

If you have a Klocwork 2020.1 or earlier version of these plug-ins installed, we recommend that you uninstall them before installing the latest version.

To install the Klocwork Desktop Analysis plug-in(s) for IntelliJ IDEA, Android Studio, and/or CLion:

  1. Download the applicable Klocwork Desktop tools package (kw-desktop-tools.<version>.<platform>.zip) from Support downloads.

    You'll need to log in to the site using your Support Center user ID and password. If you do not currently have a Support Center user ID and password, you'll need to register as a new user. You need to have active maintenance to access this page.

    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.

  2. Once downloaded, unzip the package into your preferred location.
  3. In IntelliJ IDEA/Android Studio/CLion, click File > Settings and select Plugins.
  4. Click the icon and select Install Plugin from Disk...
  5. Navigate to the downloaded zip package and select OK. The zip packages for each plug-in are as follows:
    PackageApplicable IDE
    kw-idea-plugin.zipIntelliJ IDEA
    kw-clion-plugin.zipCLion
    kw-androidstudio-plugin.<platform>.zipAndroid Studio
  6. The plug-in (for example, 'Klocwork Static Analysis for CLion') now appears in your plug-ins list. Select Restart IDE to complete the installation.

Configuring your system settings (CLion only)

Prerequisite: The Klocwork Command Line tools (kw-cmd-installer*) must be installed.

You can configure your system settings as follows:
  1. In CLion, click File > Settings.
  2. Under Tools, select Klocwork System Settings.
  3. Under Klocwork User Installation, navigate to the location of your Build Tools and click Apply.
  4. After the Build Tools location is specified, the fields under Klocwork Server URL and Klocwork License Server are populated automatically if they are blank. If these fields were previously defined, you need to update them manually to the expected value(s).
    If you are using SSL authentication, ensure the Server URL is using 'https'.
  5. Continuous Analysis is enabled by default; remove this option if you prefer to run analysis on demand.