~/talk

Static Code Analysis For Kotlin

Talkat droidCon NYC 2018 · 2018-08-27..08-28· [kotlin, testing]
speakerdeck:heyitsmohit
slides:none on file

Detekt is a static analysis tool for Kotlin that plugs into Gradle and uses a YAML config to enable rule sets, thresholds and reports; it runs locally via a git pre-commit hook or on CI and can fail builds when issues exceed a max. Under the hood it builds a PSI tree from the Kotlin compiler and traverses it with a KT tree visitor to implement rules like unsafe call nullable and use data class, plus examples: a data-class-no-methods rule and a too-many-functions threshold (default 11).

AI-written summary · about

  1. 0:00Introduction to static analysis
  2. 1:11Legacy code conversion challenges
  3. 5:28Setting up Detekt in project
  4. 12:27How Detekt works under the hood
  5. 22:33Implementing custom rules
  6. 34:13Benefits of PSI exploration
  7. 36:02Closing and Q&A
~/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.