How we completely rewrote our static code analyzer for Kotlin
summary
A full rewrite replaces the universal intermediate tree with SonarKotlin 2.0 built on PSI and a semantic model, raising rule precision and expanding to about ~120 rules but also tripling reported issues on sample projects and causing slow analysis and occasional OOMs. The talk covers concrete fixes: companion object and delegate import handling, operator mapping, and a pragmatic heuristic comment-detection to avoid compiling every comment. Watch for hard performance tradeoffs, exact bugs found, and which fixes actually land.
AI-written summary · about
chapters (6)
- 0:00Start
- 16:36Bad Function Name rule
- 17:48Deprecated Code Used Rule
- 23:24Problems
- 36:43Achievements
- 37:42Takeaways
related talks
47mHow we completely rewrote our static code analyzer for Kotlin
37mStatic Code Analysis For Kotlin
41mDetekt - State of the Union
41mKotlin Static Analysis with Android Lint
38mThe state of code coverage for Kotlin
47mComputer Says No — Static analysis and CI in a Kotlin world
45mComputer Says No - Static Analysis and CI in a Kotlin Word
42mThe state of code coverage for Kotlin
