Linty Fresh
summary
Shows how to author a real Android Lint check end to end: define an Issue, write a Detector/Java scanner that visits enum declarations, register it, package it as a jar and install it into ~/.android/lint so Android Studio and CI pick it up. Uses the Android Lint API, Gradle, JUnit 4 and the lint test helpers to run positive/negative cases. Demonstrates an enum detector, notes the core lint repo has ~200 core issues, and produces a jar installed to ~/.android/lint that reports warnings.
AI-written summary · about
chapters (13)
- 0:00Start
- 5:28heck for Enums
- 8:07hitecture
- 16:41ity Explained
- 23:18yntax Trees
- 26:06licableNodeTypes()
- 27:24tejavaVisitor(...)
- 28:07mChecker (2/2)
- 33:36uilding a Lint Check
- 34:57Resources
- 35:43egistry (2/2)
- 36:25etector (3/4)
- 38:58Output
related talks
44mLint. What, Why, How?
19mThe power of custom lint checks
21mMastering Code Quality: A Deep Dive into Custom Linting for Android Developers
46mLint for Life: Your Customizable Guard On the Go
29mLint to the Finish Line
27mBuild an Android Lint in 25 Minutes
20mClean Code Base: Harnessing the Power of Android Lint and Custom Rules
24mImprove your code with Lint checks for Kotlin
