Analyzing C++ project results "The main branch has no lines of code."

Hello,

I am trying to analyze a C++ project.
I am using sonar-scanner-cli-4.4.0.2170
I followed the analyze steps from this page https://docs.sonarqube.org/latest/analysis/languages/cfamily/

First I run build-wrapper-win-x86-64.exe then sonar-scanner.

But after the scan finished I see “The main branch has no lines of code.” message at the dashboard page of the project.

I run build wrapper like this :
build-wrapper-win-x86-64.exe --out-dir SonarOut MSBuild.exe /t:Rebuild

My sonar-project.properties file is:
sonar.projectKey=Sestek_TTS
sonar.projectName=Sestek TTS
sonar.projectVersion=1.0
sonar.sources=src
sonar.cfamily.build-wrapper-output=SonarOut
sonar.sourceEncoding=UTF-8

What is the problem and how can I fix this issue?

Thanks,
Burhan Eyimaya

Hi Burhan,

Can you post the commands you are running (with all parameters) and the entire output of the console logging for your scan?

Thanks

Brian