Comments (3)
Hi @SavitaJuyal,
You need to set the correct workspace in you sonar-project.properties.
But... your problems seems to be related to Google Maps pod.
When sonar script is running, your application is built in Debug for the Simulator (not the same arch as a real device).
Did you try building and running you app on the simulator to check if you have the problem ?
Regards,
Gilles
from sonar-swift.
Hi @zippy1978
No my project is running successfully on all devices and simulator but
not with SonarQube. I have attached the project properties settings for
my project, please check and tell me know if I am missing something.
On 5/6/16 2:27 AM, Gilles Grousset wrote:
Hi @SavitaJuyal https://github.com/SavitaJuyal,
You need to set the correct workspace in you sonar-project.properties.
But... your problems seems to be related to Google Maps pod.
When sonar script is running, your application is built in Debug for
the Simulator (not the same arch as a real device).
Did you try building and running you app on the simulator to check if
you have the problem ?Regards,
Gilles—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#21 (comment)
##########################
Required configuration
##########################
sonar.projectKey=com.netsolutions
sonar.projectName=Friendin
sonar.projectVersion=1.0
Comment if you have a project with mixed ObjC / Swift
sonar.language=swift
sonar.profile=SwiftLint
Project description
sonar.projectDescription=FriendIn
Path to source directories
sonar.sources=/Users/savitajuyal/Desktop/Friendin
Path to test directories (comment if no test)
#sonar.tests=TestDir
Destination Simulator to run tests
As string expected in destination argument of xcodebuild command
Example = sonar.swift.simulator=platform=iOS Simulator,name=iPhone 6,OS=9.2
sonar.swift.simulator=platform=iOS Simulator,name=iPhone 5,OS=9.3
Xcode project configuration (.xcodeproj)
and use the later to specify which project(s) to include in the analysis (comma separated list)
Specify either xcodeproj or xcodeproj + xcworkspace
sonar.swift.project=Friendin.xcodeproj
sonar.swift.workspace=Friendin.xcworkspace
Scheme to build your application
sonar.swift.appScheme=Friendin
##########################
Optional configuration
##########################
Encoding of the source code
sonar.sourceEncoding=UTF-8
SCM
sonar.scm.enabled=true
sonar.scm.url=scm:git:http://xxx
JUnit report generated by run-sonar.sh is stored in sonar-reports/TEST-report.xml
Change it only if you generate the file on your own
The XML files have to be prefixed by TEST- otherwise they are not processed
sonar.junit.reportsPath=sonar-reports/
Lizard report generated by run-sonar.sh is stored in sonar-reports/lizard-report.xml
Change it only if you generate the file on your own
sonar.swift.lizard.report=sonar-reports/lizard-report.xml
Cobertura report generated by run-sonar.sh is stored in sonar-reports/coverage.xml
Change it only if you generate the file on your own
sonar.swift.coverage.reportPattern=sonar-reports/coverage*.xml
OCLint report generated by run-sonar.sh is stored in sonar-reports/oclint.xml
Change it only if you generate the file on your own
sonar.swift.swiftlint.report=sonar-reports/*swiftlint.txt
Paths to exclude from coverage report (tests, 3rd party libraries etc.)
sonar.swift.excludedPathsFromCoverage=pattern1,pattern2
sonar.swift.excludedPathsFromCoverage=.Tests.
from sonar-swift.
Hi @zippy1978 ,
Please revert asap.
Regards
Savita
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.