Can I check the bug finder results for violation existence in an automated way?

6 ビュー (過去 30 日間)
Ahmed
Ahmed 2024 年 12 月 5 日
編集済み: Ahmed 2024 年 12 月 8 日
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.

採用された回答

Shubham
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.
  1 件のコメント
Ahmed
Ahmed 2024 年 12 月 8 日
編集済み: Ahmed 2024 年 12 月 8 日
Hi Shubham,
Thank you for your response. However, what I was really asking is whether it's possible for Polyspace Access or Bug Finder to give me a direct "yes" or "no" answer without the need for me to manually review the results. I already configured the Bug Finder to look for these violations.
I want to trigger an action in my CI/CD pipeline based on the answer to this question.
What I had in mind is exporting the results in a text or CSV format, then creating a script to parse this file and tell me if any new violations were found. I don't care about the number or the nature of the violations, just whether they exist.
Sorry for the long response and the vague questibon!

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by