~/talk

Building a better codebase with Lint

Talkat droidcon APAC 2020 · 2020-12-14..12-15· [developer-experience, android]
links:none on file
slides:none on file

Shows how to build a custom lint rule module that registers an IssueRegistry, implements a resource XML detector that flags a V1→V2 style detector (uses getApplicableElements, appliesTo layout, visitElement), and supplies a two-step lintfix autofix (unset then set attribute). Includes unit tests with the lint testing lib, explains baseline-driven incremental fixes, notes lintfix fails on first run then passes after fixes, and points out Android ships >100 default checks.

AI-written summary · about

  1. 0:00Introduction to Lint
  2. 1:56Why use Lint in projects
  3. 4:47Benefits of custom lint rules
  4. 5:51Setting up lint module
  5. 8:00Key lint concepts
  6. 10:49Writing custom lint rules
  7. 14:05Creating detectors
  8. 17:22Adding fixes to lint rules
  9. 19:50Autofixing lint issues
  10. 20:35Testing lint rules
  11. 25:33Integrating lint in codebase
  12. 27:43Using baseline for incremental fixes
  13. 28:47Lint rule performance types
  14. 30:11Kotlin considerations for lint
  15. 31:36Resources for learning lint
  16. 32:20Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.