GOLANG: The main branch of this project is empty & The main branch has no lines of code

  • SonarQube - sonarqube-10.0.0.68432
    SonarScanner - sonar-scanner-4.8.0.2856-windows
    SonarGo Plugin - sonar-go-plugin-1.6.0.719
  • how is SonarQube deployed: zip.
  • I’m trying to run code analysis on GO project.
    1. Contents of sonar-project.properties include:
      sonar.host.url=http://localhost:9000
      sonar.language=go
      sonar.projectKey=go-hello-world
      sonar.projectName=go hello world
      sonar.projectVersion=1.0
      sonar.login=“key”
      sonar.sources=main
      sonar.scm.exclusions.disabled=true
  1. Tried to add plugin manually(cos, I couldn’t find Marketplace at Administration > Marketplace).But plugin is causing error while starting the SonarQube.

Without using plugin, Project is appearing on the SonarQube but it says “The main branch of this project is empty.”

How do I run analysis on my Go project? Am I missing any steps/ config setup?

What do the analysis logs say? Are there files being analyzed?