How do I generate a Polyspace report in Polyspace Bug Finder with only selected code metrics?

3 views (last 30 days)
I am using Polyspace Bug Finder, and I have been able to generate Polyspace reports containing the code metrics for my project. However, I want my reports to include only a few select code metrics. How can I do this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Dec 2023
You can create a report with only selected code metrics by creating a custom review scope and generating a report with the scope. Follow these steps to generate a report with only selected code metrics:
Part 1: Create a Review Scope
1) In Polyspace Bug Finder, click Tools on the toolbar and then Preferences.
2) In the Polyspace Preferences window that appears, click Review Scope.
3) Click the New button to create a new scope.
4) Click Code Metrics in the menu on the left. Use this menu to select the code metrics you want included in your report.
Part 2: Generate a Report using the Review Scope
1) Return to the project. In the Results List pane, select the review scope you just created.
2) In Polyspace Bug Finder, click on Reporting in the toolbar and then click Run Report.
3) In the Run Report window, make sure that the Only include currently displayed results box is checked. Then, click Run to generate the report.
You can also generate a report from the Windows Command line with the command
>> polyspace-report-generator -template templateName -results-dir resultsFolder -format HTML -wysiwyg scopeName
where "templateName" is the template's path, "resultsFolder" is the results folder's path, and "scopeName" is the name of the scope you created in part 1. For more information about calling "polyspace-report-generator" with this syntax, see "Report Polyspace Results in Multiple Reports":
https://www.mathworks.com/help/bugfinder/ug/out-of-memory-errors-during-report-generation.html#mw_d239c177-e528-4177-aa88-b673a71e08cd

More Answers (0)

Products


Release

No release entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!