Skip to content

wanghu001/sonarqube-for-android-example

 
 

Repository files navigation

Sample application

This application demonstrate how to configure Sonarqube with gradle for an Android project. Sources are based on a Google sample app.

How to analyze this project

sonarqube:alpine is a lightweight version (5M) or sonarqube:latest. See docker store page for details.

  • Run analysis
./gradlew clean test jacocoTestReport sonarqube \
          -Dsonar.host.url=http://[Sonarqube container IP]:9000 \
          --info --stacktrace

Replace [Sonarqube container IP] with corresponding IP address.

  • Watch result here: http://[Sonarqube container IP]:9000

    • Log in with default user: admin/admin
    • Warning: analyses is done by a background task and can take a view seconds. You can follow background task here: Administration > Projects > Background Tasks
  • See Sonarqube logs:

docker logs sonarqube:alpine

About

SonarQube configuration example for Android project with Gradle build tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%