Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Live example

Icon

If you want to see a live example of the capabilities of the Android plugin, you can have a look at the analysis of the <TODO> project on Nemo.

Description / Features

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

  • Adds a new set of rules based on Android lint
  • On top of Java files, it also analyzes Android Manifest and resources (such as pictures)

It is compatible with 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.

Note that you have to install the different Patforms/API whose your projects are built with.

Installation

  1. Install the plugin through the Update Center or download it into the SONARQUBE_HOME/extensions/plugins directory
  2. Restart the SonarQube server

Usage

Run an Analysis with the SonarQube Runner (Recommended Way)

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

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

Run an Analysis with the other Analyzers

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

Metrics

See Metrics documentation page.

Extending Coding Rules using XPath

New coding rules can be added using XPath. See the related documentation.

To navigate the AST, download the SSLR JavaScript Toolkit.

Change Log

Loading

Version 1.4 (unreleased) (${entries.size()} issues)

Type Key Summary Priority Status

 

 

This project is part of a larger effort to industrialize Android development, you can have a look at this other project (https://github.com/stephanenicolas/Quality-Tools-for-Android)

  • No labels