Adding a source code analysis for IOT

Bonjour,

Dans le cadre du projet de création d’un respirateur artificiel, nous avons besoin de mettre un analyseur de code iot (arduino et stm32) en C/C++.

J’aurai besoin d’aide pour le paramétrage.
le lien du projet https://github.com/covid-response-projects/covid-respirator

Merci d’avance,
Emmanuel

10 Likes

Welcome to the community!

We require all posts on this forum in English. Can you please rewrite in English?

Sorry, by the emergency I didn’t notice the language need.

I am working on an open source respirator to help heath and hospitals on covid crisis.

For the medical agreement we need to have a static code analysis and I wanted to use Sonarcloud but I am blocked since I always use it with java or scala and I don’t know how to use it on iot c or C++ code and i need some help for setup.

the project is available at : https://github.com/covid-response-projects/covid-respirator

Thank you for the help,
Emmanuel

1 Like

Hello @moyowi,

We’re more than happy to help you on this important and great project!

@Abbas_Sabra and I spent a bit of time to come up with a simple solution to have the repo analyzed on SonarCloud. We did that on my fork:

I saw that you’re using GitHub Actions for your build. Yet, we can’t manage to have analysis of C/C++ code working with our own SonarCloud GitHub Action - which is why we had to do it on Travis CI. If it’s fine for you to use Travis CI for this need, then I can create a PR on your repo and guide you through the few steps to adjust your configuration.

And we can even do this offline in French if that’s easier for you :slight_smile:

6 Likes

Hello Fabrice,

Thank you for your help !

We used github action as an easy available default solution, but we have no pb for using travis and your PR is welcomed !

Emmanuel

Hello @moyowi ,

I don’t know what are your exact needs related to medical agreement, but in this situation, in addition to the default quality profile, you might also want to enable the more strict MISRA rules (rules designed for safety-critical software). You can activate the “MISRA C++ 2008 recommended” quality profile to get the combination of SonarWay with MISRA.

Hope your project will succeed!

3 Likes

Great @moyowi! I’ll prepare a PR and submit it to you as soon as I can.

2 Likes

Here it is: https://github.com/covid-response-projects/covid-respirator/pull/41

And I remain available if you need more help!

2 Likes

Hi,

I currently have a Arduino (C/C++) project in Azure DevOps that needs to be scanned using Sonarcloud. I tried to open those documents you attached for reference but they all lead to error pages. Can you guide me on how to perform the sonarcloud scan?

Regards,
JX

The project has been splitted and renamed, you can now find it at https://github.com/makers-for-life/makair-firmware

Regards,
Emmanuel

A post was merged into an existing topic: Arduino CLI and 0 files analyzed