- You can leverage Polyspace Access for checking MISRA violations by reviewing the analysis results through its web interface or integrated tools. For more information, refer to the following link: https://mathworks.com/help/releases/R2024b/polyspace_access/index.html
- Use the command "-misra-c-2023" in the Polyspace command-line interface to check for violations of MISRA C:2023 rules. For details, refer to: https://mathworks.com/help/releases/R2024b/bugfinder/ref/checkmisrac2023misrac2023.html#mw_7fb57cc8-9576-4d78-9111-4ca4efe73bbd
- If the above options don't work for you, consider creating a custom script to parse the output files of the analysis to search for specific keywords indicating violations.
Can I check the bug finder results for violation existence in an automated way?
4 次查看(过去 30 天)
显示 更早的评论
Hi all,
I currently have polyspace bug finder server running as a part of my gitlab ci/cd pipeline. I need to add a step which checks the results of the analysis and gives me a boolean result based on whether there is a Misra/Mandatory violation or not.
Is there any api provided to get such result or do I have to write a script that generates a report and parses it to check for violations.
I don't care about the nature of the violations or there number I just want to know if there is any.
Thank you all.
0 个评论
采纳的回答
Shubham
2024-12-6
Hi Ahmed,
To check for MISRA/Mandatory violations and obtain a boolean result, you have these options:
For more information on checking for violations of MISRA C:2023 rules and directives, refer to the following documentation link:
Hope this helps.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!