/ecoCode-mobile-ios-swift-test-project

Swift project to test the swift plugin of ecoCode-mobile.

Primary LanguageSwiftGNU General Public License v3.0GPL-3.0

Plugin SonarQube iOS Test Project

This project aims to demonstrate how to integrate plugin-sonarqube with an iOS project

Initialization

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

Command line

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.