Hi,
- versions used (SonarQube 7.5, Scanner latest, Plugin backelite-sonar-swift-plugin-0.4.3, and any relevant extension)
- running command ./run-sonar-swift.sh -v
I am trying to integrate sonar swift I downloaded SonarQube 7.5 and sonar scanner. I done with all the steps like adding property to the project folder and run-sonar-swift.sh file.
After running ./run-sonar-swift.sh -v from terminal from the project folder everything looks fine but then I go to the localhost:9000, I found everything is 0 like code smell 0, issues 0. I found same issues are reported but I did not find relevant for me so I am here please help me. Here is the log
INFO: 2 files indexed
INFO: Quality profile for swift: SwiftLint
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=3ms
INFO: Sensor SwiftLint [backelitesonarswiftplugin]
INFO: Sensor SwiftLint [backelitesonarswiftplugin] (done) | time=11ms
INFO: Sensor Tailor [backelitesonarswiftplugin]
INFO: Processing Tailor report sonar-reports/SonarDemo-tailor.txt
INFO: Sensor Tailor [backelitesonarswiftplugin] (done) | time=58ms
INFO: Sensor Swift Squid [backelitesonarswiftplugin]
WARN: Metric 'lines' is an internal metric computed by SonarQube. Provided value is ignored.
INFO: Sensor Swift Squid [backelitesonarswiftplugin] (done) | time=60ms
INFO: Sensor Surefire [backelitesonarswiftplugin]
INFO: Processing Surefire report TEST-report.xml
INFO: Unable to locate test source file SonarDemoTests/**/SonarDemoTests.swift
INFO: Unable to locate test source file SonarDemoTests/SonarDemoTests.m
INFO: Unable to locate test source file SonarDemoTests/**/SonarDemoTests.swift
INFO: Unable to locate test source file SonarDemoTests/SonarDemoTests.m
INFO: Unable to locate test source file SonarDemoTests/**/SonarDemoTests.swift
INFO: Unable to locate test source file SonarDemoTests/SonarDemoTests.m
INFO: Sensor Surefire [backelitesonarswiftplugin] (done) | time=75ms
INFO: Sensor Cobertura [backelitesonarswiftplugin]
INFO: Processing Cobertura report sonar-reports/coverage-swift.xml
INFO: Collect file data: SonarDemo/AppDelegate.swift
INFO: Collect file data: SonarDemo/ViewController.swift
INFO: Sensor Cobertura [backelitesonarswiftplugin] (done) | time=1041ms
INFO: Sensor Lizard [backelitesonarswiftplugin]
INFO: Processing complexity report: /Users/satyen/documents/SonarDemo/sonar-reports/lizard-report.xml
INFO: Sensor Lizard [backelitesonarswiftplugin] (done) | time=7ms
INFO: Sensor SonarJavaXmlFileSensor [java]
INFO: Sensor SonarJavaXmlFileSensor [java] (done) | time=0ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=8ms
INFO: No SCM system was detected. You can use the 'sonar.scm.provider' property to explicitly specify it.
INFO: Calculating CPD for 0 files
INFO: CPD calculation finished
INFO: Analysis report generated in 92ms, dir size=95 KB
INFO: Analysis reports compressed in 19ms, zip size=16 KB
INFO: Analysis report uploaded in 18ms
INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard?id=com.boubyan.com
INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWpS-3zFEOKKj9P0Lk21
INFO: Task total time: 4.870 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 6.471s
INFO: Final Memory: 21M/406M
INFO: ------------------------------------------------------------------------
+ returnValue=0
+ set +x