Skip to content

Instantly share code, notes, and snippets.

@AJ-7885
Last active August 10, 2018 13:13
Show Gist options
  • Save AJ-7885/997fbabebdfc60d9694fa726e1b8d647 to your computer and use it in GitHub Desktop.
Save AJ-7885/997fbabebdfc60d9694fa726e1b8d647 to your computer and use it in GitHub Desktop.
sonar-project.properties
# must be unique in a given SonarQube instance
sonar.projectKey=project-key
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=Project Name
sonar.projectVersion=1.0.0
sonar.language=js
sonar.sourceEncoding=UTF-8
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# This property is optional if sonar.modules is set. 
sonar.sources=src
sonar.test.inclusions=src/**/*.spec.js
# Exclude all node module
sonar.exclusions=./node_modules/*
# Exclude dist & build
sonar.exclusions=./dist/* , ./build/*
# Exclude coverage
sonar.exclusions=./coverage/*
# Exclude temp
sonar.exclusions=./tmp/*
 
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.host.url=https://sonarqube.com/
# Optional
# sonar.tests=tests
# To import the LCOV report
sonar.javascript.lcov.reportPath=coverage/lcov.info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment