polyspace-comments-import
(DOS/UNIX) Import review information from previous Polyspace analysis
Description
Note
This Polyspace® command is available in
. Here,
polyspaceroot
\polyspace\bin
is the Polyspace installation folder, for instance, polyspaceroot
C:\Program
Files\Polyspace\R2024b
(see also Installation Folder for desktop products or Installation Folder for server products). To avoid typing the full path to
this command, add this location to the PATH
environment variable in
your operating system.
polyspace-comments-import -diff-rte
imports review information from a results file in prevResultsFolder
currentResultsFolder
[-print-new-results] [-overwrite-destination-comments]prevResultsFolder
to
currentResultsFolder
. The review information includes the severity,
status and additional notes that you assign to a result.
Besides importing the review information, the command also shows the number of results
where review information could not be imported either because the result changed or the
result already had new review information. If you use the option
-print-new-results
, you see this information:
Number of new results in current results folder, that is, results not present in previous results folder
Number of results removed from previous results folder, that is, results no longer present in the current results folder
Number of results in current results folder that do not have associated review information
You can also use this command to create a baseline for the analysis results. In the Polyspace user interface, if you click the New button, only the analysis results that are new compared to the baseline remain in the results list.
If you use the option -overwrite-destination-comments
, newer review
information on previously existing results are overwritten with previous review
information. For instance, if the same result has a different status in the current and
previous results folder, after using the polyspace-comments-import
command:
Without the option, the result in the current results folder retains its status.
With the option, the status of the result in the current results folder is overwritten with the status from the previous results folder.
Examples
Input Arguments
Tips
Polyspace Code Prover™ no longer calculates coding rules and coding rule results. If you import Code Prover results from a previous version of Code Prover to the current version, the review information attached to the coding rule and code metrics results are not imported in the Code Prover result.
Version History
Introduced in R2013b