~/talk

Stop Debating. Start Enforcing with Lint Rules

Talkat droidcon San Francisco 2024 · 2024-06-06..06-07· [android]
slides:none on file

Argues for replacing architecture debates in PRs with executable lint rules written as unit tests using Consist and Kotest, run via Gradle and GitHub Actions; shows rules that enforce view models to extend Jetpack ViewModel, ban view models from taking repository params or importing resources, ensure use cases expose one public function, and catch Retrofit annotation bugs; recommends Detekt/ktlint for style, per-rule baselines for legacy debt, and DI checks for Hilt/Koin. enforce architecture catch bugs pre-test baseline technical debt

AI-written summary · about

  1. 0:00Introduction
  2. 4:17Architectural debate causes
  3. 7:07Custom lint rules challenges
  4. 8:12Introducing Consist framework
  5. 11:23First lint rule
  6. 14:55Baseline and error messages
  7. 15:17Enforcing architecture
  8. 20:12Bug prevention with lint rules
  9. 23:44Lint rules project structure
  10. 25:30Automating in CI/CD
  11. 27:15Enforcement benefits
  12. 31:05Onboarding gains
  13. 32:07Resources and closing
~/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.