Mastering Code Quality: A Deep Dive into Custom Linting for Android Developers
summary
Shows how to implement working custom lint checks that run on both Java and Kotlin by targeting the Universal AST and publishing rules via an IssueRegistry plus detectors using the visitor pattern. Demonstrates concrete steps: add the Android lint deps (example version guideline 23.0.3), create a lint module, scope rules per module, run on‑the‑fly in Studio or via Gradle to produce HTML/XML reports, and build an @AndroidEntryPoint check that flags missing annotations at build time. Notes most rules end up project‑specific; no central repo known.
AI-written summary · about
chapters (6)
- 0:00Android Lint introduction
- 3:39What is Android Lint
- 9:18How Lint works internally
- 10:22First custom lint check
- 17:57Summary of custom linting
- 18:19Q&A on lint repositories
related talks
20mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
15mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
24mImprove your code with Lint checks for Kotlin
27mBuild an Android Lint in 25 Minutes
46mLint for Life: Your Customizable Guard On the Go
44mLint. What, Why, How?
29mLint to the Finish Line
41mKotlin Static Analysis with Android Lint
