- 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?
조회 수: 5 (최근 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에서 Run Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!