This topic explains how to configure a reference report to baseline static analysis results.
C/C++test can identify tasks detected in the current analysis run by comparing them against a baseline report. This allows you to exclude existing tasks from the current report in order to focus on most recently detected code defects.
The process involves two major steps:
You can generate a reference report.xml file by running analysis from the command line interface:
Configure the following setting in your localsettings file (see Configuring Localsettings):
report.ref.report.file=path/to/report.xml |
report.ref.report.file
setting.To use the reference report as a baseline when performing analysis, you need to configure advanced report settings in an advanced settings file–a file that allows you to specify additional settings that cannot be configured in the regular settings used for command line testing. See Configuring an Advanced Settings File for information about creating an advanced settings file and passing its location to C/C++test.
Create an advanced settings file that includes the following C/C++test's advanced settings:
goal.ref.report.file=[PATH or URL] //Specifies the path or URL to a reference report.xml file goal.ref.report.findings.exclude=true //Enables excluding existing findings from the current report. |
When you run static analysis, the report will only include tasks detected during the current run.