PSCP: What is this report metric?
3 次查看(过去 30 天)
显示 更早的评论
This is the last metric shown in Chapter 2 of generated PSCP reports. It seems to be 100% unless there is a red check.In this case, there was 1 red check out of about 100 files processed. When the red check was eliminated, the value changed to 100%. I looked through the user guide and reference docs but did not find an answer.
0 个评论
回答(1 个)
Chandrika
2024-7-16
Hello David,
From the screenshot you shared, I could understand that the metric "Percentage of code checked for run-time errors" in your Polyspace Code Prover report seems to be 100% upon eliminating a red check.
Please know that this observation is actually expected since once a red check is hit, Polyspace cannot analyze the remaining code in the same scope as the check, thus never checking 100% of the code. In this case, you thus need to check where the red check is happening and fix it for a 100% check.
You may also find this information on the "Code Following Red Check" section in the following MathWorks documentation:
Hope that asnwers your query!
Regards,
Chandrika
2 个评论
Chandrika
2024-7-18
Hello David,
I understand that you do not expect the percentage of your checked code to be 56% for a single red check. It could be the case that the file with the red check contains significant portion of code due to which the overall percentage of your checked code is showing to be only 56%. I would thus suggest you check the file where this red check is occuring in this case.
Regards,
Chandrika
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Generate Report 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!