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

Custom checkers issues

Custom checkers issues

Extensibility errors are collected in your build log. See Accessing your desktop build.log and parse_errors.log for more information.

Don't edit the name of the Path checker

If you change your mind about the name for your checker after you've created the checker files, you will avoid problems by re-creating the checker files with the new name (specified with the --code option) and then copying the contents of the previous .jkb and the help.xml files.

For example, you already created checker files for a checker you called MY.JAVA.CHECKER, updated the generated checker files, and then decided that your checker should be called MY.AWESOME.JAVA.CHECKER, then you should re-generate the files as follows:

kwcreatechecker --language java --type kast --code MY.AWESOME.JAVA.CHECKER
  1. For the checkers.xml file, only copy relevant sections from the previous version (usually just the title and the message) from the older version into the new one. Do not copy the values for the <error id> elements into the new checkers.xml file.
  2. Copy the contents of the previous .jkb and help.xml files into your new files.
  3. Run Ant to pack the checker files.
  4. Deploy the path checker to your desktop to test it.

Missing 'in' value for sink

If you see the message, "Missing 'in' value for sink" in your build log, it means that the value of the sink could not be determined in the knowledge base. The value of 'in' must be specified in the annotation @Sink("this").

A record type should be specified for the method

Annotations are case sensitive. If you see the message, "A record type should be specified for the method", verify that your annotation capitalization is correct. For example, the correct annotation is @Source, not @source.

Help for my custom C# checker doesn't display in Klocwork Desktop help

If you install custom C# checkers and are using Klocwork Desktop, the help does not display properly.

Workaround: Copy the custom checker files from the <username>/.klocwork/plugins/csharp directory to the <username>/.klocwork/plugins directory.

nmake install fails with invalid option

When building your custom C/C++ checker with nmake install, you see the message "NMAKE : fatal error U1065: invalid option '-". This error means that a MAKEFLAGS environment variable is set for your IDE.

To resolve this problem, check the MAKEFLAGS environment variable and clear it with set MAKEFLAGS=. Then rebuild your checker with nmake install.