add sonar config files

This commit is contained in:
troosan 2018-11-30 23:01:05 +01:00
parent d9165f00fa
commit 6a7594630c
3 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -18,6 +18,7 @@ vendor
/.settings /.settings
phpword.ini phpword.ini
/.buildpath /.buildpath
/.scannerwork
/.project /.project
/nbproject /nbproject
/.php_cs.cache /.php_cs.cache

View File

@ -23,5 +23,6 @@
<logging> <logging>
<log type="coverage-html" target="./build/coverage" /> <log type="coverage-html" target="./build/coverage" />
<log type="coverage-clover" target="./build/logs/clover.xml" /> <log type="coverage-clover" target="./build/logs/clover.xml" />
<log type="junit" target="./build/logs/logfile.xml"/>
</logging> </logging>
</phpunit> </phpunit>

17
sonar-project.properties Normal file
View File

@ -0,0 +1,17 @@
# must be unique in a given SonarQube instance
sonar.projectKey=phpoffice:phpword
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=PHPWord
sonar.projectVersion=0.16
# 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.tests=tests
sonar.php.coverage.reportPaths=build/logs/clover.xml
sonar.php.tests.reportPath=build/logs/logfile.xml
# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
sonar.host.url=http://localhost:9000