Custom checkers issues
Custom checkers issuesExtensibility 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 checkerIf 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
Missing 'in' value for sinkIf 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 methodAnnotations 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 helpIf 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 optionWhen 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. |