- I have a project with swift and obj-c, I want to analyse these source code using SonarQube do I need build wrapper for static code analysis?
- I have a project with C and C++, I want to analyse these source code using SonarQube do I need build wrapper for static code analysis?
Hi Vicky,
In both cases, you will need Build Wrapper and the SonarScanner CLI.
You’ll need to generate a compilation database (compile_commands.json) using the Build Wrapper and provide it via the sonar.cfamily.compile-commands parameter when running the SonarScanner CLI.
References,
Please note analysing C/C++/Objective C is supported in SonarQube Server and not in SonarQube Community.
HTH,
Aravind
I am not an expert, but from what I understand, there are two analysis modes. One using a Compilation Database (via Build Wrapper) and another using AutoConfig. It looks like AutoConfig was triggered in your case.
SonarQube recommends choosing between AutoConfig and Compilation Database modes based on specific scenarios. You can find more details here,
-Aravind
