Member-only story
The technical choices I make to build great Android apps. Part 2 — Code quality

This 3-part mini-series talks a little bit about the technical choices I make when building an app, specifically an A-Z app, to go at least some of the way to describe some aspects of what makes a (technically) great app.
Code quality
The quality of the code is more than just how you go about structuring your classes but extends into how you spot potential issues from null pointer exceptions to memory leaks.
Static analysis
There are some excellent static analysis tools out there such as Facebook’s Infer and Uber’s NullAway if your code base is still heavily Java, however, as my apps are now 100% Kotlin they no longer offer me much help.
With Java projects I would have used checkstyle, now I use detekt for Kotlin to spot little code smells that could be better, along with the built-in Lint checks too of course.

If you have converted your build scripts to use the Gradle Kotlin DSL then detekt can…