Scan CPP Project in Sonarqube

Hi Team,

I have a project which has the files of CPP along with that I have some third party software QT. I want to scan the CPP projects with the sonarqube. Could you help me how to do this? When I scanned with Sonarscanner command the project is showing no results saying that main project is empty. it seems scanning failed for this. Could you help me on this?

Thanks,
Prasad.

Hey there.

What edition of SonarQube are you using?

1 Like

I am using Sonarqube 9.2.3 community Edition.

Hey there.

C/C++ analysis is only supported in the Developer Edition and higher, which is why none of those files are being analyzed.

You might find some luck with some community-supported plugins, but you’ll have to reach out to their community (raising a GitHub issue) for any support.

Hi Colin,

Thanks for your reply.

Is there any to perform scanning these files? like PSScriptAnalyser for Powershell code. for powershell also we have the community plugin only, atleast I could scan with PSScriptAnalyser. Similarly do we have anything for CPP?

Thanks,
Prasad.