Better Programming

Advice for programmers.

Member-only story

Improving Code Quality Of Android Apps With SonarQube And Gradle Detekt

Paul Knulst
Better Programming
Published in
4 min readDec 10, 2021

--

Yes YOU CAN
Photo by Brett Jordan on Unsplash

Code quality is very important and you should always try to optimize your implementation. This article shows two tools that can be combined to achieve better quality, especially in android apps.

Overview

1. Introduction
|
2. SonarQube
|--- 2.1 Installation
|--- 2.2 Configuration
|--- 2.3 Analyzing code quality with SonarQube
3. Gradle Detekt
|
4. Combining both tools
|
5. Closing notes

1. Introduction

Some weeks ago I found a nice tutorial about SonarQube. Because I am a great fan of improving my code quality or the quality of projects I am working on I created an instance of SonarQube myself and used it to check and improve the code quality of several android apps.

The following article shows a how-to that can be executed by anybody if a running Docker Swarm exists (learn how to create one here).

I also provide a Dockerfile for local development in the end.

2. SonarQube

--

--

Paul Knulst
Paul Knulst

Written by Paul Knulst

Husband, father of two, geek, lifelong learner, tech lover & software engineer. Writing about projects and challenges in IT. https://www.paulsblog.dev

Responses (4)