File tree 3 files changed +5
-5
lines changed
java/org/sonar/plugins/swift/coverage
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,9 @@ sonar.sourceEncoding=UTF-8
62
62
# Change it only if you generate the file on your own
63
63
# sonar.swift.lizard.report=sonar-reports/lizard-report.xml
64
64
65
- # Cobertura report generated by run-sonar.sh is stored in sonar-reports/coverage.xml
65
+ # Cobertura report generated by run-sonar.sh is stored in sonar-reports/coverage-swift .xml
66
66
# Change it only if you generate the file on your own
67
- # sonar.swift.coverage.reportPattern=sonar-reports/coverage*.xml
67
+ # sonar.swift.coverage.reportPattern=sonar-reports/coverage-swift *.xml
68
68
69
69
# OCLint report generated by run-sonar.sh is stored in sonar-reports/oclint.xml
70
70
# Change it only if you generate the file on your own
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public final class SwiftCoberturaSensor implements Sensor {
38
38
private static final Logger LOGGER = LoggerFactory .getLogger (SwiftCoberturaSensor .class );
39
39
40
40
public static final String REPORT_PATTERN_KEY = SwiftPlugin .PROPERTY_PREFIX + ".coverage.reportPattern" ;
41
- public static final String DEFAULT_REPORT_PATTERN = "sonar-reports/coverage*.xml" ;
41
+ public static final String DEFAULT_REPORT_PATTERN = "sonar-reports/coverage-swift *.xml" ;
42
42
43
43
private final ReportFilesFinder reportFilesFinder ;
44
44
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ if [ "$unittests" = "on" ]; then
261
261
262
262
# Put default xml files with no tests and no coverage...
263
263
echo " <?xml version='1.0' encoding='UTF-8' standalone='yes'?><testsuites name='AllTestUnits'></testsuites>" > sonar-reports/TEST-report.xml
264
- echo " <?xml version='1.0' ?><!DOCTYPE coverage SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'><coverage><sources></sources><packages></packages></coverage>" > sonar-reports/coverage.xml
264
+ echo " <?xml version='1.0' ?><!DOCTYPE coverage SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'><coverage><sources></sources><packages></packages></coverage>" > sonar-reports/coverage-swift .xml
265
265
266
266
echo -n ' Running tests'
267
267
buildCmd=(xcodebuild clean build test)
@@ -312,7 +312,7 @@ if [ "$unittests" = "on" ]; then
312
312
echo " ${slatherCmd[@]} "
313
313
314
314
runCommand /dev/stdout " ${slatherCmd[@]} "
315
- mv sonar-reports/cobertura.xml sonar-reports/coverage.xml
315
+ mv sonar-reports/cobertura.xml sonar-reports/coverage-swift .xml
316
316
fi
317
317
318
318
# SwiftLint
You can’t perform that action at this time.
0 commit comments