Android’s lint tool allows you to find common issues in your code by running code static analysis against your project. This tool performs some Android specific checks that some other code static analysis tools can’t do for you. The lint tools comes with the Android SDK under tools/lint. In its most simple form you can use this command:

lint <Android project folder>

I like this form because I can easily plug it to my CI system:

lint <Android project folder> --exitcode


You can configure the errors or warnings lint shows you by placing a file named lint.xml in the root of your project. Inside this file you can specify if you want to make a specific message an error, a warning or ignore it completely:

<?xml version="1.0" encoding="UTF-8"?>
    <issue id="Registered" severity="ignore" />

You can find a list of all the available warnings you can use:

lint --list
[ android  mobile  automation  debugging  java  productivity  programming  ]
Android development with Docker android automation mobile productivity
Getting familiar with Terraform automation productivity
Taking over existing instances with Terraform automation productivity
Terraform automation productivity
Introduction to GDB debugging programming