Lint. What, Why, How?
summary
Covers Android Lint history and capabilities with concrete howto: lists 350 built‑in checks, shows running lint via Gradle and the command line, explains the baseline file to ignore legacy warnings, and demonstrates creating custom rules by registering an IssueRegistry, implementing Detector scanners (XML, UAST, resource, binary), and packaging as a lint checks dependency. Includes unit testing with lint-tests, Kotlin support details, and adding IDE quick fixes that apply across files.
AI-written summary · about
chapters (15)
- 0:00Intro
- 1:04Console
- 4:38Configure int
- 7:03Baseline - Success
- 9:03Registry
- 10:45Detector & Scanner
- 16:16RawColorDetector Test
- 21:20Universal Abstract Syntax Tree
- 24:16Wrong TestMethodNameDetector Test
- 27:22MissingXml Header Test
- 29:26Nifty helpers
- 30:54Fully backed Kotin Support
- 32:24Call Graph API
- 33:29Future
- 34:57Resources
related talks
46mLint for Life: Your Customizable Guard On the Go
21mGetting the most out of Android Lint
43mLinty Fresh
29mLint to the Finish Line
21mMastering Code Quality: A Deep Dive into Custom Linting for Android Developers
19mThe power of custom lint checks
20mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
27mBuild an Android Lint in 25 Minutes
