- 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?
6 ビュー (過去 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 件)
参考
カテゴリ
Help Center および File Exchange で Command-Line Only Options についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!