Clean Code Base: Harnessing the Power of Android Lint and Custom Rules
summary
Android Lint plus a small custom-rule module catches real problems: it finds the intent-filter exported receiver issue that blocks Android 12 installs, detects mismatched translations that cause runtime crashes, and flags mutating SharedPreferences and allocations inside draw that hurt performance. Using the Gradle lint plugin, Google’s template repo, PSI/evaluator APIs and open-source rule sets (Slack/Uber), teams run lint on CI, produce a baseline file for legacy noise, and write JVM tests so rules unblock a target-SDK upgrade and fix dependency bugs.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker background
- 1:10Challenges in sharing coding knowledge
- 3:18What is Android Lint and its benefits
- 5:02Default Android Lint rules in action
- 8:34Custom lint rules for shared preferences
- 10:39Performance checks in draw methods
- 12:06Using baseline files for lint warnings
- 12:50Creating custom lint rules
- 15:17Preventing RX Java usage with lint
- 17:31Advanced lint rule techniques
- 18:57Enforcing design system rules
- 19:40Q&A and closing remarks
related talks
15mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
21mMastering Code Quality: A Deep Dive into Custom Linting for Android Developers
27mBuild an Android Lint in 25 Minutes
46mLint for Life: Your Customizable Guard On the Go
44mLint. What, Why, How?
24mImprove your code with Lint checks for Kotlin
21mGetting the most out of Android Lint
19mThe power of custom lint checks
