Kwktspecimport

If you're already analyzing your projects and have a detekt YAML configurarion file available, you can use this tool to convert it to a Klocwork configuration file (.pconf).

To run this script, python3 or higher is required. Python3 is installed as part of your Klocwork server install and you can find it under '<server_install>\python3'.

Usage

kwktspecimport.py [-h] [-o <file>] <detekt-config-yaml>

where <detekt-config-yaml> is your detekt configuration file.

Example

kwktspecimport.py detekt_config.yml -o custom_config.pconf

Running the above example creates a new Klocwork configuration file 'custom_config.pconf' that you can use for the analysis.

Options

Name (and short name) Description
--help (-h) display help
-o <file> specify the Klocwork checkers .pconf file; the default is called 'detekt.pconf'.