On Java project - The main branch has no lines of code


  • ALM used : GitHub
  • CI system used : Automatic
  • Languages of the repository : Java
  • Only if the SonarCloud project is public, the URL : https://github.com/Arnaud80/OceanOfCode
  • Error observed : The main branch has no lines of code.

I’m trying to test SonarCloud on a very simple java project with only one Java file from one CodinGame challenge. That’s why I only one file and not one by class :wink:

I trying to use .sonarcloud.properties, but I still the same problem no source code found.
It’s strange because at the first step SonarCloud detect my project has 100% java.

Before to have this message I forced the Automatic Analysis after this message :

  • 100% Lines of Code will be ignored (Java files)
    We recommend using another analysis method to get the most out of SonarCloud. Force Automatic Analysis

Thanks in advance for your help !

My bad, read before post … :wink:

I used the Manual CI and it’s working fine.

1 Like