Skip to content

Commit 6a75946

Browse files
committed
add sonar config files
1 parent d9165f0 commit 6a75946

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ vendor
1818
/.settings
1919
phpword.ini
2020
/.buildpath
21+
/.scannerwork
2122
/.project
2223
/nbproject
2324
/.php_cs.cache

phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@
2323
<logging>
2424
<log type="coverage-html" target="./build/coverage" />
2525
<log type="coverage-clover" target="./build/logs/clover.xml" />
26+
<log type="junit" target="./build/logs/logfile.xml"/>
2627
</logging>
2728
</phpunit>

sonar-project.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# must be unique in a given SonarQube instance
2+
sonar.projectKey=phpoffice:phpword
3+
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
4+
sonar.projectName=PHPWord
5+
sonar.projectVersion=0.16
6+
7+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
8+
# This property is optional if sonar.modules is set.
9+
sonar.sources=src
10+
sonar.tests=tests
11+
sonar.php.coverage.reportPaths=build/logs/clover.xml
12+
sonar.php.tests.reportPath=build/logs/logfile.xml
13+
14+
# Encoding of the source code. Default is default system encoding
15+
#sonar.sourceEncoding=UTF-8
16+
17+
sonar.host.url=http://localhost:9000

0 commit comments

Comments
 (0)