This project includes the minimal thing in order to perform a C analysis using SonarQube.
It can be run as is on Linux and MacOS. It needs:
gcc
on Linux/MacOS env.cl
on Windows (MSBuild compiler)- SonarQube Scanner
build-wrapper
, downloaded from your SonarQube instance:- Linux: SONARQUBE_URL/static/cpp/build-wrapper-linux-x86.zip
- MacOS: SONARQUBE_URL/static/cpp/build-wrapper-macosx-x86.zip
- Windows: SONARQUBE_URL/static/cpp/build-wrapper-win-x86.zip
build-wrapper --out-dir bw-output ./build.sh
sonar-scanner -X
build-wrapper-win-x86-64.exe --out-dir bw-output build.bat
sonar-scanner.bat -X