Presented at the droidcon Berlin 2015:
http://droidcon.de/session/power-custom-lint-checks
You can find the recorded talk here:
https://www.youtube.com/watch?v=td7RzzBhBfk
Nearly every Android developer knows about the Lint toolset which comes bundled with the Android SDK - however not many use it to its full power, if at all. Lint can help prevent wrong usage of the SDK APIs, and enforce not only code style, but also internal architecture conventions. For example, you have a fancy BaseFragment which should be extended by all your Fragments, or you have a custom logger which should be used instead of android.util.Log. Both of these are perfect use cases for custom Lint checks.
This talk will show you how to use the APIs to create custom Lint checks, and how to include them in your Gradle-based project.