Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{iframe:src=http://update.sonarsource.org/plugins/android-confluence.html|width=700|height=250350|frameborder=0}
Your browser does not support iframes.
{iframe}
Tip
titleLive example

If you want to see a live example of the capabilities of the Android plugin, you can have a look at the MorseFlash project.

Description / Features

This plugin enhances the Java EcosystemPlugin to analyze Android projects within SonarQube:

  • Adds a new set of rules based on Android lint
  • On top of Java files, Android Manifest and resources (such as layouts or pictures) are analyzed

It is compatible with the the SonarQube Eclipse plugin to track issues while coding. It is also compatible with the Issues Report plugin to run pre-commit local analysis.

Prerequisites

The Android SDK must be installed on the machine(s) running the SonarQube analyses. The ANDROID_HOME environment variable should be configured to point to the installation directory of the Android SDK.

...

To run an analysis of your Android project, use the the SonarQube Runner.

A sample project is available on GitHub that can be browsed or downloaded/projects/languages/android/android-sonarqube-runner

Run an Analysis with the other Analyzers

Maven and  and Ant can also be used to launch analysis on Android projects.

...