~/talk

Building a better codebase with Lint

Talkat droidcon Americas 2020 · 2020-11-16..11-17· [testing, developer-experience]
links:none on file
slides:none on file

Adds custom lint rules to enforce design tokens and catches missing TextView styles at build time. Implements a registry and an issue called MissingStyleAttribute with severity set to error, uses a ResourceXmlDetector limited to layout folders, checks TextView for a style attribute and reports file and line. Replaces forbidden usages (example: Snackbar → TicketTipSnackbar), runs in IDE and CI, uses a baseline file lint-baseline.xml to absorb legacy violations, and costs about 30–90 seconds extra build time.

AI-written summary · about

  1. 0:00Introduction to lint
  2. 2:46What is lint used for
  3. 5:33Why write custom lint rules
  4. 8:41Setting up lint module
  5. 11:29Lint rule structure basics
  6. 13:57Design system lint example
  7. 17:50Writing custom lint detectors
  8. 23:51Integrating lint in workflow
  9. 27:11Lint performance considerations
  10. 29:19Kotlin lint rule tips
  11. 31:05Resources for learning
  12. 32:35Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.