Running a local repository scan shows "The main branch has no lines of code." in SonarQube

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Enterprise 9.9 LTS

how is SonarQube deployed: zip, Docker, Helm
Azure App Service

what are you trying to achieve
Scan the local repository with sonar scanner and see the results in SonarQube

what have you tried so far to achieve this
Setup the SonarScanne inside the repo as ./sonar-scanner-, all files and folders are within the root folder.

When scanning has been done, I get “The main branch has no lines of code.” in SonarQube.

The folder structure:

My bad. Did run the scan within the sonar-scanner… folder. Did rerun the scan from the root with ./sonar-scanner…/bin/sonar-scanner.bat.

All good and the code is in the SonarQube now :slight_smile:

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