Skip to content

Instantly share code, notes, and snippets.

@nikhuber
Last active January 24, 2020 09:57
Show Gist options
  • Save nikhuber/6c2b8558441a561116aad0c99bde6b83 to your computer and use it in GitHub Desktop.
Save nikhuber/6c2b8558441a561116aad0c99bde6b83 to your computer and use it in GitHub Desktop.
Sample properties file to demo SonarQube with PHP and PHPUnit
# SonarQube server URL, e.g. http://localhost:9000
sonar.host.url=http://sonarqube:9000
# must be unique in a given SonarQube instance
sonar.projectKey=php-pm
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=PHP Process Manager
sonar.projectVersion=1.0
# 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.exclusions=bin
sonar.tests=tests
# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8
# Files generated by PHPUnit containing test coverage information for SonarQube
sonar.php.tests.reportPath=junit-logfile.xml
sonar.php.coverage.reportPaths=clover.xml
@dresh
Copy link

dresh commented Dec 26, 2019

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment