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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:GNU General Public License v3.0


Languages

Language:Swift 55.8%Language:Batchfile 44.2%