"The main branch of this project is empty" for js files

Sonar Qube Version :
Sonar Scanner Version:

I’m trying to scan the project using above configuration. What i am see in the web dashboard for the project is The main branch of this project is empty. But background task is success and here is the context

SonarQube plugins:

  • Python Code Quality and Security (python)
  • SonarCSS (cssfamily)
  • JaCoCo (jacoco)
  • SonarGo (go)
  • SonarKotlin (kotlin)
  • Svn (scmsvn)
  • SonarJS (javascript)
  • SonarRuby (ruby)
  • SonarScala (sonarscala)
  • C# Code Quality and Security (csharp)
  • Findbugs 4.0.1 (findbugs)
  • Java Code Quality and Security (java)
  • SonarHTML (web)
  • Git (scmgit)
  • SonarFlex (flex)
  • SonarXML (xml)
  • PHP Code Quality and Security (php)
  • SonarTS (typescript)
  • VB.NET Code Quality and Security (vbnet)
  • Community Branch Plugin 1.4.0 (communityBranchPlugin)
  • ESLint 0.4.0 (eslintplugin)

Project server settings:
Project scanner properties:

  • sonar.host.url=http://localhost:9000
  • sonar.projectBaseDir=C:\app_20200923_172623
  • sonar.projectKey=app
  • sonar.projectName=app
  • sonar.scanner.app=ScannerCli
  • sonar.scanner.appVersion=
  • sonar.sourceEncoding=windows-1252
  • sonar.sources=src
  • sonar.working.directory=C:\app_20200923_172623.scannerwork

SCM provider autodetection failed. Please use “sonar.scm.provider” to define SCM of your project or disable the SCM sensor in the project settings

i’m just using my local source code for scanning.

JavaScript and TypeScript rules were not executed. Error when running ‘node -v’. Is Node.js available during analysis

Hi Vinod, welcome to the SonarSource Community!

Your problem is likely that you’re including a sonar.branch.name parameter as part of the analysis, whereas our expectation is that the main branch of the project be scanned without any branch parameter.

I see you’ve also installed the community branch plugin; I can’t comment on what its presence does here, but if you don’t need it and simply want to analyze your project based on local checkouts, I might suggest doing without this plugin.

Yes i have removed as you suggest. Now its working able to see analysis report.

Thanks for your quick support.

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