Sonarcloud - The "release-2.7.0" branch has no lines of code

We are using circleci and sonarcloud, for one of the project sonarcloud branch analysis says no lines of code. It is node application and below is my configuration.

sonar-project-properties:

sonar.projectName=sunbird-content-service
sonar.language=js
sonar.projectKey=project-sunbird_sunbird-content-service
sonar.host.url=https://sonarcloud.io
sonar.organization=project-sunbird
sonar.projectVersion=1.0
sonar.sources=.

circleci config:

version: 2.1
jobs:
build:
docker:
- image: circleci/node:6.17-browsers
working_directory: ~/project/src
steps:
- checkout
- run: git submodule update --init --recursive src/libs
- run: mkdir -p opt/content && cp -r src/* opt/content/
- restore_cache:
key: dependency-cache-{{ checksum “src/package.json” }}
- run: cd opt/content/ && npm install --unsafe-perm
- save_cache:
key: dependency-cache-{{ checksum “src/package.json” }}
paths: ./node_modules
- run: cd opt && zip -r content.zip content
- store_artifacts:
path: opt/content.zip
destination: content.zip
- run:
name: Install sonar scanner
command: ‘sudo npm install -g sonarqube-scanner’

  - run:
      name: Sonar scanner
      command: |
              sonar-scanner

workflows:
version: 2.1
build_and_test:
jobs:
- build

Anything wrong with the configuration, please help.

Hello @harshavardhanc,

It looks like you have the following warning:

JavaScript and/or TypeScript rules were not executed. Only Node.js v8 or later is supported, got v6.17.1.

Could you try to run in a docker container that has Node.js v8 available?

Tom

Thanks a lot @TomVanBraband it worked. But we have other repositories where we are running Nodev6 there we are not facing this issue.
Anyhow, I will update the Node version in other projects as well.