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

Kwcscollect

The kwcscollect command (like Kwcollect for C/C++) is a lightweight tool that you can use to collect C# data and submit to Klocwork Support to receive additional help with build errors. It can be used to collect:
  • whole projects (sources and references)
  • Visual Studio solution files to investigate problems in the generated build specification
  • minimal source files to reproduce parse errors
  • sources and references to reproduce semantic or MIR generator errors

Usage

kwpython kwcscollect.py [<options>] <tables_dir>

where

  • <options> is any of the kwcscollect options listed below
  • <tables_dir> is the tables directory of the project you want to collect data for

Examples

If you want to add an archive to collect data on, run the following:

kwpython kwcscollect.py -o "myarchive" -p "C:\Klocwork\Server 18.1\My_tables"

If you want to collect data for your entire project, you can omit the '-p' option and run the following:

kwpython kwcscollect.py -o "myarchive" "C:\Klocwork\Server 18.1\My_tables"

Options

Name (and short name) Description
<tables_dir> The location of your project's tables directory; this is a mandatory option and must be specified last
--help (-h) display help
-o <file> specify the name of the archive you want to create
-p collects parse errors for the project
--debug enable debug output