GithubHelp home page GithubHelp logo

t-a-b-lab / ecocode-mobile-android-test-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from green-code-initiative/ecocode-mobile-android-test-project

0.0 0.0 0.0 160 KB

Android Java project to test the Java / XML / Groovy plugins of ecoCode-mobile.

Java 100.00%

ecocode-mobile-android-test-project's Introduction

Plugin SonarQube Android Test Project

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

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-mobile/blob/main/INSTALL.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=3b950618645d4ed5809944bcb68f5157f99dd0af

Command line

./gradlew sonarqube -Dsonar.projectKey=ecoCode -Dsonar.host.url=http://localhost:9000 -Dsonar.login=3b950618645d4ed5809944bcb68f5157f99dd0af

Where the value of -Dsonar.login is the token which has been generated from sonarqube instance. 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]

ecocode-mobile-android-test-project's People

Contributors

jhertout avatar jberque avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.