The <my branch> branch has no lines of code

I have SonarQube Developer Edition v9.9 installed via unzip. I am trying to do code C++ analysis on a Visual Studio 2022 C++ project. I am using Azure DevOps server for my build pipeline.

I have configured a SonarQubePrepare@5 task. I have configured a task to run the build using build-wrapper-win-x86-64.exe. I have configured a SonarQubeAnalyze@5 task and a SonarQubePublish@5 task (all according to the instructions in your documentation).

Everything runs and I get an ANALYSIS SUCCESSFUL message in the scan output but when I navigate to the link to see the results it reports: β€œThe main branch has no lines of code.”

I have tried too many variations of settings to mention. What additional info can I provide that would be helpful?

I have resolved this issue. I was following an example of an inclusion parameter and that ended up restricting my analysis.

1 Like

@gprosch Thank you for returning here and providing your resolution.

In the future, please provide DEBUG level logs (add sonar.verbose=true in the extraProperties key in SonarQubePrepare task in ADO) from the build and we can help you investigate further.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.