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.