I want to know the generic sonar-project.properties file for a c/c++ project

I want to know the generic sonar-project.properties file for a c/c++ project.
Also, I want to know what should be branch names for the different builds.
If anybody has integrated it with azure devops and cpputest for testing, it will be helpful?

Hi,

Welcome to the community!

We try to keep it to one topic per thread. Otherwise it can get messy, fast. I’ll make a pass at all your questions here, but I reserve the right to ask you to create new threads if you have followup questions.

Start from the basic properties file example provided in the SonarScanner CLI docs and add the CFamily-specific parameters you need for your chosen analysis method.

Regarding branch names, that’s totally up to you.

Regarding Cpputest, that doesn’t seem to be a supported tool.

 
HTH,
Ann

Hi Ann,
Thanks for the reply. By the way for writing test-cases we are using cpputest and for taking test coverage we are using gcovr.

1 Like