In Code tab, I would like to have only one root folder instead of several sub-folders

Hi,
I’m migrating SonarQube analysis from Azure DevOps pipeline steps to GitLab CI pipeline jobs.
From the same project, once the analysis are uploaded to SonarQube, the Code tab is showing:

  • only one root folder from Azure DevOps pipeline steps
  • several sub-folders from GitLab CI pipeline jobs

Is there a sonar property I could use to tell that I want a cumulative display? (I already set the sonar.sources property to the one folder I want).

Here are screenshots of both displays:


Best regards
Phil

Hi Phil,

Welcome to the community!

I’m a little confused by your question.

First, did you not provide the same analysis configuration in both places? With the same analyzer? Run from the same directory?

Second, if, in the ADO-analysis-example, if you click on the one folder, do you not see exactly what’s shown in the second screenshot?

 
Ann

Hi Ann,

Thanks a lot for your quick reply.

Same analyzer yes, run on the same server machine.
The analysis is run from the root of the local Git repository in both cases.
And yes, clicking on the one folder is showing the same details as in the second screen shot.
But I was wondering if this could affect the result of the analysis or not.
And I would prefer the first way of presenting the result, with one folder and one cumulated value for all metrics (line of code, coverage…).

Best regards
Phil

Hi Phil,

Could you share the two pipelines/analysis configurations, as well as the two analysis logs?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann