~/talk

Detekt - State of the Union

Talkat droidcon Berlin 2021 · 2021-10-20..10-22· [kotlin, testing]
slides:none on file

detekt is a community‑driven static analyzer for Kotlin that already ships 220 rules, including syntactic checks like magic number, semantic checks like unnecessary not‑null operator and double mutability for collections, and configurable forbidden method call lists. It runs as a CLI, Gradle plugin (producing many per‑variant tasks), IntelliJ plugin, outputs SARIF, and wraps KtLint integration for autocorrection. Type‑resolved rules use a binding context and currently require classpaths; work is underway to replace double compilation with a compiler plugin.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:09What is Detekt and its popularity
  3. 2:54Detekt rule sets overview
  4. 5:03Example rules: unused private member and magic number
  5. 8:15Advanced rules: unnecessary not-null operator
  6. 10:03Double mutability for collections rule
  7. 11:30Forbidden method call rule
  8. 13:58Detekt ecosystem and integrations
  9. 15:25KTLint integration in Detekt
  10. 18:36Writing custom Detekt rules
  11. 21:32Detekt integrations: IntelliJ, SARIF, SonarQube
  12. 24:03Type resolution in Detekt
  13. 27:40Gradle plugin setup and tasks
  14. 30:56Detekt for Kotlin Multiplatform
  15. 31:17Upcoming features: ignore annotations and reports
  16. 34:31Future: Detekt compiler plugin
  17. 38:35Community and how to contribute
  18. 40:20Giveaway 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.