Evaluate Polyspace Code Prover Results Against Software Quality Objectives
Instead of evaluating all results of a Code Prover analysis, you can first define a set of criteria that the analyzed project must meet and compare the Code Prover results against those criteria. The Software Quality Objectives or SQOs are a set of thresholds against which you can compare your verification results. You can develop a review process based on the Software Quality Objectives. In your review process, you consider only those results that cause your project to fail a certain SQO level.
You can use a predefined SQO levels or define your own. To customize SQO levels, see Customize Software Quality Objectives (Polyspace Access).
Specifications of SQO Levels
Following are the quality thresholds specified by each predefined SQO.
For information on the rationales behind these levels, see Software Quality Objectives for Source Code.
Compare Verification Results Against Software Quality Objectives
You can compare your verification results against SQOs either in the Polyspace® Access web interface or the Polyspace desktop user interface.
In the Polyspace Access web interface, you can first determine whether your project fails to attain a certain Quality Objective threshold by looking at the Quality Objectives card on the Project Overview dashboard.
The card shows the percentage of results that you have already fixed or justified in order to attain the threshold. Click the number of remaining findings to open those findings in the Results List. For a more detailed view of the quality of your code against all quality objectives thresholds, open the Quality Objectives dashboard. For more information, see the Monitor Code Quality Using Quality Objectives Dashboard in Polyspace Access (Polyspace Access).
You can also generated reports that show the PASS or FAIL status using the templates
Bug Finder and Code Prover report (-report-template).
In the Polyspace user interface, you can use the menu in the Results List toolbar to display only those results that you must fix or justify to attain a certain Software Quality Objective.
To activate the SQO options in this menu, select Tools > Preferences. On the Review Scope tab, select Include Quality Objectives Scope.
You cannot use the menu in the user interface to suppress red or gray checks. Therefore, you cannot directly compare your project against predefined SQO levels 1, 2 and 3 in the Polyspace user interface. However, in the Polyspace Access web interface, you can compare your project against all predefined SQO levels.
Customize SQO Levels
To customize SQOs:
In the Polyspace Access web interface, see Customize Software Quality Objectives (Polyspace Access).
In the Polyspace desktop user interface, review scopes are used to implement SQOs. See how to create your own review scopes in one of these topics:
- Filter and Sort Results in Polyspace Access Web Interface (Polyspace Access)
- Address Results in Polyspace Access Through Bug Fixes or Justifications (Polyspace Access)