I am trying to perform Sonarqube pull request analysis. I was succesfully able to perform the analysis. However when i look at the results and click on the code tab, i cannot see anything. The pull request contains changes in around 50 files and this is with GitHub Enterprise. Please let me know what i am missing.
Sonarqube version : 7.8
How i am performing analysis : Sonar scanner commandline using bat file
ganncamp
(G Ann Campbell)
January 7, 2020, 6:20pm
2
Hi,
Welcome to the community!
Are these 50 files actual code files? And if so, how about screenshots of the Overview tab and of Coverage section of the Measures tab?
Ann
Hi , Yes they are 50 code files. Here is the screenshot of the overview tab
Here is the measure tab screenshot.
Also i get this warning after the analysis is run.
ganncamp
(G Ann Campbell)
January 8, 2020, 2:56pm
6
Hi,
Thanks for the screenshots. I was hoping to see the Coverage section of the measures tab, and more specifically the Lines to Cover value. E.G.
Ann
Unfortunately i do not see coverage menu at all. This is what i see under the measures tab.
ganncamp
(G Ann Campbell)
January 8, 2020, 3:12pm
8
Okay, then. Can you post the code-formatted (```
on the line before and on the line after) analysis log?
Ann
sriramps4
(Sriram)
January 9, 2020, 11:02am
9
Here is the log attached.
Please note this sonar analysis is run using sonar scanner bat in a CI tool called TEAMCITYPoC_SQ_srpra1_22.txt (120.1 KB)
dmeneses
(Duarte Meneses)
January 10, 2020, 8:57pm
11
Hi,
Looks like the scanner can’t find .git
in any parent directory.
Is the code being scanner part of a git repository?
sriramps4
(Sriram)
January 14, 2020, 4:53pm
12
Yes, the checkout happens and the scanner points to the directory where the checkout has happened. Can you give me more details on how to debug this issue?
sriramps4
(Sriram)
January 20, 2020, 1:23pm
13
Can you please update on this?
dmeneses
(Duarte Meneses)
January 21, 2020, 9:44am
14
Looking at the logs, I’d start by making sure that D:\DPOP_Source\PCAT_SystemTestingEnvironment-516\.git
exists.