Skip to content

green-code-initiative/ecoCode-kotlin-android-test-project

Repository files navigation

Plugin SonarQube Android Kotlin Test Project

This project aims to demonstrate how to integrate plugin-sonarqube with android project in kotlin

Initialization

Before starting, you have to run a sonarqube instance with the ecoCode Android plugin running. Please follow the documentation: https://github.com/green-code-initiative/ecoCode-kotlin-android/blob/main/README.md.

On the deployed SonarQube instance, configure a project with the following properties:

  • Project Key: ecoCode
  • Project name: ecoCode
  • Save the project login key somewhere

Update the gradle.properties file with the project login key:

# Sonar
systemProp.sonar.host.url=http://localhost:9000
systemProp.sonar.projectKey=ecoCode
systemProp.sonar.projectName=ecoCode

#----- Token generated
systemProp.sonar.login={INSERT_YOUR_TOKEN_HERE}

Command line

./gradlew sonarqube --scan

Update the projectKey if you do not use ecoCode as you project name in SonarQube.

From IDE

You can launch from android studio :app[sonarqube]

About

Android Kotlin project to test the Android Kotlin plugin of ecoCode.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages