Analyze project without buildWrapper tool

sonarcfamily
build-wrapper

(Benayahu Mizrachi) #1

Hello, I’m using Sonar Version 7.6.0.21501, and I want to analyze C and C++ code.
We passed to this version lately, and we found out that we must to run buildWrapper to get some results.

We want to use the sonar tool without using buildWrapper, can it be done ?


(Colin Mueller) #2

Nope! The build wrapper is required to scan C/C++ as of SonarCFamily v6.0.0, and the previous workaround to bypass this was long deprecated before being removed. Use of the build wrapper has always been required for accurate results, now it is required for any results.

Colin


Cpp and C analyse code without compilation
(Benayahu Mizrachi) #3

Thanks a lot.
So I need to build it in my environment and then run sonar tool over it ?
Or I can build my project in remote host, then copy the output directory to another host, and run the tool ?


(Colin Mueller) #4

I would suggest checking out the appropriate documentation for the machine you’re building on: For example, here’s the docs on Building on Linux. https://docs.sonarqube.org/display/PLUG/Building+on+Linux