This project aims to demonstrate how to integrate plugin-sonarqube with an iOS project
Before starting, you have to run a sonarqube instance with the ecoCode iOS plugin running. Please follow the documentation: https://github.com/green-code-initiative/ecoCode-mobile/blob/main/INSTALL.md.
On the deployed SonarQube instance, configure a project with the following properties:
- Project Key: ecoCodeTestiOS
- Project name: ecoCodeTestiOS
- Save the project login key somewhere.
Update the sonar-project.properties file with the project login key:
sonar.projectKey=ecoCodeTestiOS
sonar.projectName=ecoCodeTestiOS
sonar.login=your_login_here
To run the project, just use the following command line from the project root:
- On Windows:
sonar-scanner\sonar-scanner-4.7.0.2747-windows\bin\sonar-scanner.bat
Note that login and default sonarQube host can be overriden using -Dsonar.host.url and -Dsonar.login command line parameters.