Hi All ,
I am using Sonarqube Community ver : 8.9.6
and I am trying to Run code analysis via Azure Devops CI pipeline.
I am getting the error “The main branch of this project is empty.”
I have set up this analysis for several pipelines, all is working fine except one where I get this error.
All other pipelines are also using same Sonarqube and Azure.
Can you please give me some idea what could cause this issue and how to resolve it ?
I am attaching below other measures and project setting.
One more thing I noticed from Activity is the analysis was showing some results till August 17,2021 and it shows nothing on Dec 10,2021 analysis. There’s no change committed between Aug 17 and Dec 10, 2021. What could possibly cause this ?
What language are we talking about? And are you using a 3rd-party plugin to analyze it? It looks like the expected size metrics simply aren’t being provided for your project. And the UI relies on seeing a non-zero ncloc (non-comment lines of code) value to know that there’s something to display for the project.
I can see the below warnings, why is considering my project as test-code, can i explicitly set it as Main code?
The language is C# , quality profile sonar-way(C#)