May 24, 2023, 7:27pm
Hi Team, I am getting The main branch has no lines of code. error. ANALYSIS SUCCESSFUL but still cant see the report on Sonarqube dashboard.
230 files indexed
228 source files to be analyzed
INFO: 228/228 source files have been analyzed
Analysis report generated in 100ms, dir size=122.2 kB
INFO: Analysis report compressed in 23ms, zip size=14.9 kB
INFO: Analysis report uploaded in 227ms
INFO: ANALYSIS SUCCESSFUL
May 26, 2023, 8:21am
As requested in the template post, what version of SonarQube are you using?
May 26, 2023, 12:15pm
Further question: what type of sources to you expect to have scanned in that folder hierarchy?
Some languages need a specific preparations, like e.g. C/C++/…, otherwise it will dismiss all those files, that it couldn’t find meta-info for. what kind of meta info it needs, depends on the language to be scanned.
May 30, 2023, 2:59am
I am using * Version 9.9 (build 65466).
May 30, 2023, 3:00am
I am looking to scan iOS project which is using swift language.
May 30, 2023, 10:06am
I would suggest sharing your full analysis logs, redacting information as necessary (like file names)
May 30, 2023, 2:28pm
Colin, Thanks for checking. I was able to resolve the issue after updating the properties file.