Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save moezkorkmaz/1bca3f30997fb3f18a2fa7fa5d6a081a to your computer and use it in GitHub Desktop.
Save moezkorkmaz/1bca3f30997fb3f18a2fa7fa5d6a081a to your computer and use it in GitHub Desktop.
This is a sample sonar-project.properties file for PHP.
sonar.projectKey=ProjectNameInCamelCase-php-dev-DevName
sonar.projectName=ProjectName-php-Dev-DevName
sonar.issuesReport.html.enable=true
sonar.report.export.path=sonar-report.json
sonar.projectVersion=1.0.0
sonar.sources=app
#sonar.language=php
sonar.sourceEncoding=UTF-8
# Reusing PHPUnit reports
#sonar.php.coverage.reportPath=ci/codeCoverage/codeCoverage.xml
#sonar.php.tests.reportPath=ci/testResults.xml
# Here, we can exclude all the directories that we don't want to analyse.
sonar.exclusions=app/Providers/**
#sonar.analysis.mode=preview
sonar.issuesReport.html.enable=true
sonar.report.export.path=report.json
# Change the host.url to point to the
# sonarqube server (default localhost)
sonar.host.url=https://code.perennialsys.com/sonar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment