~/talk

Clean Code Base: Harnessing the Power of Android Lint and Custom Rules

Talkat droidcon Berlin 2023 · 2023-07-05..07-07· [android, developer-experience]
slides:none on file

Android Lint plus a small custom-rule module catches real problems: it finds the intent-filter exported receiver issue that blocks Android 12 installs, detects mismatched translations that cause runtime crashes, and flags mutating SharedPreferences and allocations inside draw that hurt performance. Using the Gradle lint plugin, Google’s template repo, PSI/evaluator APIs and open-source rule sets (Slack/Uber), teams run lint on CI, produce a baseline file for legacy noise, and write JVM tests so rules unblock a target-SDK upgrade and fix dependency bugs.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:10Challenges in sharing coding knowledge
  3. 3:18What is Android Lint and its benefits
  4. 5:02Default Android Lint rules in action
  5. 8:34Custom lint rules for shared preferences
  6. 10:39Performance checks in draw methods
  7. 12:06Using baseline files for lint warnings
  8. 12:50Creating custom lint rules
  9. 15:17Preventing RX Java usage with lint
  10. 17:31Advanced lint rule techniques
  11. 18:57Enforcing design system rules
  12. 19:40Q&A and closing remarks
~/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.