~/talk

SonarKotlin: Better Sstatic Code Analysis Tool for Kotlin

Talkat Devoxx Poland 2022 · 2022-06-22..06-24· [kotlin, testing]
links:none on file
slides:none on file

SonarKotlin replaces the old Slang engine with Kotlin PSI plus semantic binding contexts, increasing rule coverage from ~40 to 98 rules and adding security and regex checks; the analyzer grows into a 33 MB plugin and initially causes steep slowdowns because it naively generates binding contexts per file, causing O(n×classpath) work. The bottleneck is fixed by generating the binding context generated once per module, and an expensive heuristic for commented-out code is removed (commented-out-code rule disabled), restoring usable performance.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:20Disclaimers and presentation goals
  3. 6:29Agenda and project history
  4. 9:40Slang engine overview and limitations
  5. 13:11Trade-offs of using Slang for Kotlin
  6. 14:55Decision to create SonarKotlin 2.0
  7. 18:51Choosing Kotlin PSI over alternatives
  8. 23:27Challenges with Kotlin PSI
  9. 28:44Why semantic analysis is needed
  10. 33:00Paying technical debt in SonarKotlin
  11. 36:31Plugin size optimization struggles
  12. 39:22Performance issues after 2.0 release
  13. 44:14Debugging performance with user feedback
  14. 47:46Fixing binding context performance
  15. 49:11Achievements in SonarKotlin 2.9
  16. 49:31Key takeaways from the project
  17. 50:33Acknowledgments and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.