~/talk

The power of custom lint checks

Talkat droidcon Berlin 2015 · 2015-06-15..06-17· [developer-experience, android]
speakerdeck:winterdroid
slides:none on file

Shows how to write a custom Android Lint check that detects calls to android.util.Log and enforces using Timber instead by implementing a wrong timber usage detector (JavaScanner), registering an Issue in the IssueRegistry, and packaging it as a Java module that exports a lint.jar and plugs into Gradle so lint runs on CI. Includes unit testing strategy (extend lint check test / AbstractCheckTest), shows the detector’s visit/report flow, and demonstrates that the checks run and can be debugged via tests.

AI-written summary · about

  1. 0:00Introduction to Lint
  2. 1:20Benefits and challenges
  3. 2:57Defining custom checks
  4. 6:38Implementing the detector
  5. 12:24Integration into projects
  6. 14:44Testing custom rules
  7. 17:38Debugging and conclusion
~/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.