~/talk

Custom Lint Rules

Talkat Mobius 2019 Moscow · 2019-12-07..12-08· [android]
links:none on file
slides:none on file

Team uses Android Lint with custom detectors written in Kotlin, shipping 20–25 custom rules that catch project-specific mistakes (e.g., wrong requestCode comparisons) and prevent regressions. Rules run via Gradle/IDE, can fail the build, and include unit tests using Lint test infra; quick fixes are implemented as auto-fix (Alt+Enter) actions. Performance impact is small—example detector ~50 ms, full-run under a second on a large codebase—while pitfalls include cross-module annotation edge cases and the need for careful tests.

AI-written summary · about

  1. 0:00Introduction to custom lint rules
  2. 3:14Static analysis overview
  3. 7:34Android Lint features
  4. 10:22Why write custom lint rules
  5. 15:27Setting up lint environment
  6. 20:52Writing a custom detector
  7. 26:32Lint fixes and automation
  8. 31:08Testing and debugging lint rules
  9. 35:02Useful resources and community
  10. 37:59Q&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.