polyspace-report-generator
R2026b(System Command) Generate reports from Polyspace analysis results stored locally or on Polyspace Access
Syntax
Description
The polyspace-report-generator system command generates PDF, Word, or HTML reports from Polyspace® static analysis results by using predefined or custom templates.
Generate Reports from Local Results
Note
This Polyspace command is available in . Here, polyspaceroot\polyspace\bin is the Polyspace installation folder, for instance, polyspacerootC:\Program Files\Polyspace\R2026b (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-report-generator -template generates a report by using the template outputTemplate [reporting options]outputTemplate for the local analysis results that you specify with reporting options.
By default, reports for results from project-name are stored as project-name_report-name in the PathToFolder\Polyspace-Doc folder. PathToFolder is the results folder of project-name.
Generate Reports from Polyspace Access Results
polyspace-report-generator -template generates a report by using the template outputTemplate -host hostName -run-id runID [polyspace access options] [reporting options] [-set-language-english]outputTemplate for the analysis results corresponding to run runID on Polyspace
Access™. hostName is the fully qualified host name of the machine that hosts Polyspace
Access.
By default, reports for results from project-name are stored as project-name_report-name in the PathToFolder\Polyspace-Doc folder. PathToFolder is the path from which you call the command.
For exporting results to a tab-delimited text file, the polyspace-results-export command is preferred.
Examples
Input Arguments
Tips
You cannot use the
polyspace-report-generatorcommand with results generated with Polyspace as You Code™. Use thepolyspace-results-exportcommand instead. Seepolyspace-results-export.Report generation can take a long time for result sets containing a very large number of defects or coding rules violations. In some cases, you might run into issues from insufficient memory. If that happens, you can either increase the Java® heap size or export the results to a tab-delimited text (TSV) file. The results export is faster than report generation and can complete in reasonable time even for large result sets. For more information, see Fix Insufficient Memory Errors During Polyspace Report Generation.
Alternative Functionality
Instead of generating reports from existing analysis results, you might want a report to be generated along with the analysis. In this case, use the analysis options -report-template and -report-output-format. See Configure Report Generation.
Reports generated along with analysis will only contain review information imported from previous analyses (if any such information is imported). If you add new review information to the results, you will have to regenerate the reports using the polyspace-report-generator command.