Comments (3)
Hey, sorry for the delay. For more logs, you can run sonar runner with the -e
or -X
options.
Also, please double check your report file (and the paths in it).
HTH
from sonar-swift.
@lukewar What are the paths in your cobertura.xml
?
Could it be related to #36?
Also, what's your sonar.swift.coverage.reportPattern
value in sonar-project.properties
?
I had it set to stuff like .fastlane/coverage*.xml
, sonar-reports/coverage*.xml
.
I tried sonar.swift.coverage.report
too, but it didn't work.
Only after I removed all sonar.swift.coverage.report...
lines from properties file and put a report into sonar-reports
directory, I saw a message like this in sonar runner log:
- Processing coverage report /Users/path/to/project/sonar-reports/coverage.xml
from sonar-swift.
Thanks guys for helping me with investigating this issue. It is weird since I have 4 other projects where everything works just fine. All projects have sources in both Swift
and Obj-C
.
Eventually I have found what was the reason. This project had tests written only in Obj-C
. Apparently sonar-runner
implementation is skipping coverage check if /*Tests
directory does not contain any file with .swift
extension. Adding empty file with .swift
extension resolved this.
I will answer questions from previous comments as somebody may find it useful:
- unrelated to #36, my coverage report had proper paths
- I have
sonar.swift.coverage.reportPattern
set toreports_output/cobertura.xml
from sonar-swift.
Related Issues (20)
- 0 bugs, 0 vulnerability, security hotspot 0 HOT 6
- Cannot make script 'run-sonar-swift' works
- Can I use this plugin in Sonar Community Version? HOT 1
- Processing SureFire report TestReport.xml - Unable to locate Swift test source file for classname
- 0 bugs, 0 vulnerability, security hotspot 0 ,code smell 0, duplication 0 HOT 3
- Unable to upgrade sonarqube to community 7.9.6 edition due to sonarswift plugin HOT 1
- Sonar 9 can't start with this plugin HOT 10
- sonarqube 9 library update HOT 5
- ERROR - Command 'oclint-json-compilation-database $args' failed with error code: 247 HOT 4
- sonarqube-9.1.0.47736 backelite-sonar-swift-plugin-0.4.6.jar HOT 6
- Web Process failed HOT 1
- ERROR - Command oclint-json-compilation-database failed with error code: 250 HOT 1
- [ObjectiveC] ERROR - Command oclint-json-compilation-database failed with error code: 6 HOT 1
- Wrapper is stopped due to jdk error. HOT 6
- when I add backelite-sonar-swift-plugin-0.4.3.jar in plugin in sonar it stop the server and says "The connection to SonarQube is lost. Please contact your system administrator." HOT 4
- Sonar-swift fail with error oclint-json-compilation-database
- SonarQube dashboard always showing "The main branch has no lines of code." (and run-sonar-swift.sh always exclude *.swift files)
- Remove backticks (`) from "protocol" and rename it.
- swiftlint for sonarqube documentation says to use .json format, but here in github shows .txt for swiftlint... HOT 1
- Duplication block is 0 but we have duplications in our swift code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonar-swift.