GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ofields/sonar-android: Extension plugin for Android Lint in SonarQube

This repository was archived by the owner on Nov 22, 2021. It is now read-only.
BranchesTags
Open more actions menu
 
 

Latest commit

 

History

173 Commits
173 Commits

Folders and files

NameName
Last commit message
Last commit date
its/plugin
its/plugin
 
 
lint-rules-gen
lint-rules-gen
 
 
sonar-android-plugin
sonar-android-plugin
 
 
.cix.yml
.cix.yml
 
 
.gitignore
.gitignore
 
 
.sonarsource.properties
.sonarsource.properties
 
 
.travis.yml
.travis.yml
 
 
README.md
README.md
 
 
cix.sh
cix.sh
 
 
logo-sonar-android-lint-plugin.png
logo-sonar-android-lint-plugin.png
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Android Lint Plugin

Build Status

Contributions are welcome. Join the effort !

Description

This plugin enhances the Java Plugin by providing the ability to import the Android Lint reports. The idea is to visualize Android Lint errors directly in Sonar.

Usage

  • Most Android projects are compiled with Gradle, so if this is the case use the SonarQube Scanner for Gradle to analyse your Android project
  • Tune the SonarQube quality profile by activating the Android Lint rules on which you'd like to see some issues reported into SonarQube
  • Configure the Gradle project to execute the Android Lint engine before launching the SonarQube analysis
  • Define in the Gradle project the property sonar.android.lint.report (default value points to : build/outputs/lint-results.xml) to specify the path to the Android Lint report
  • Run your Analyzer command from the project root dir
  • Follow the link provided at the end of the analysis to browse your project's quality in SonarQube UI (see: Browsing SonarQube)

A sample project is available on GitHub, can be browsed an be downloaded: /projects/languages/android/android-sonarqube-runner

Compiling and Installing the plugin:

  • Install maven
  • Clone the repository
  • Compile and test the code, then generate the jar: -> run "mvn clean install" command in your terminal
  • copy the jar (in the new generated target folder) in <path_to_your_sonar_install>/extensions/plugins folder,
  • restart sonar

Running an analyse:

  1. On a Maven project
  • mvn sonar:sonar -Dsonar.profile="Android Lint" in your project
  1. On another project using sonar-runner
  • Add this property to your sonar-project.properties -> sonar.profile=Android Lint

About

Extension plugin for Android Lint in SonarQube

Resources

Readme
Activity

Stars

156 stars

Watchers

1 watching

Forks

63 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.