~/talk

Static Kotlin bug hunting

Talkat Cloud Builders: Java Conf 2023 · on Thursday, 2023-03-30· [java]
slides:none on file

Sonar replaces the old intermediate tree (Slang) with a native Kotlin engine called Sonar Kotlin 2.0, removing the Slang tech debt and reimplementing ~40 rules plus 180 total rules across 13 releases. Analysis uses IntelliJ PSI (with PSI nullability hell tradeoffs), hits surprising OOM and performance regressions on real projects, temporarily disabled a slow "commented-out code" check, then added a probabilistic heuristic; many false positives for imports and delegates are fixed but unresolved-classpath and Java 16+ resolution remain tricky.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:14History of static analysis
  3. 8:32Why Kotlin 2.0 was needed
  4. 11:24Program Structure Interface challenges
  5. 16:03Nullability and documentation issues
  6. 17:47Compiler diagnostics reuse
  7. 19:54SonarKotlin 2.0 release and feedback
  8. 21:00Performance degradation fixes
  9. 24:31Commented code rule challenges
  10. 25:35Unused import rule deep dive
  11. 33:53Limitations and future work
  12. 34:14Achievements and takeaways
  13. 35:58Q&A 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.