Main Content

-import-comments

Import review information from previous analysis

Syntax

-import-comments resultsFolderPath

Description

-import-comments resultsFolderPath imports the review information (status, severity and additional notes) from a previous analysis stored in the folder specified by the path resultsFolderPath.

You can import review information from the same type of results only. For instance:

  • You cannot import review information from a results of a Bug Finder checker to a Code Prover run-time check. Even when the checker names sound similar, the underlying semantics of Bug Finder and Code Prover can be different.

  • You cannot import review information from results of a file-by-file verification in Code Prover to results of a regular Code Prover verification.

You can also use this option 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.

In the user interface (Polyspace desktop products only), on the Configuration pane, enter this option in the Other field. See Other.

Examples

Import review information from the previous results:

  • Bug Finder:

    polyspace-bug-finder -sources filename -import-comments C:\Results\myProj\1.2
    
  • Code Prover:

    polyspace-code-prover -sources filename -import-comments C:\Results\myProj\1.2
    
  • Bug Finder Server:

    polyspace-bug-finder-server -sources filename -import-comments C:\Results\myProj\1.2
    
  • Code Prover Server:

    polyspace-code-prover-server -sources filename -import-comments C:\Results\myProj\1.2
    

Tips

  • If you use Polyspace as You Code extensions and you do not use previous analysis results that you downloaded from Polyspace Access™, enter this option in an analysis options file. See options file.

  • If you select Automatically import comments from last verification field of the Preference window of the Polyspace Platform user interface, avoid specifying -import-comments in an options file or in the Other (Polyspace Code Prover)Other field. If you specify this option in both the user interface and in an options file or Other filed, the analysis accepts the configuration in the user interface.

  • 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.