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

6 views (last 30 days)
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.

Accepted Answer

Shubham
Shubham on 6 Dec 2024
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 Comment
Ahmed
Ahmed on 8 Dec 2024
Edited: Ahmed on 8 Dec 2024
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!

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!