Detekt – A static code analyzer for Kotlin

by TheWiggleson 7/24/2025, 11:16 AMwith 79 comments

by smokelon 7/24/2025, 12:05 PM

Out of curiosity, how many of you are using Kotlin for backend development? It seems that Java has caught up a bit, and the advantages of Kotlin (extension methods, better syntax, better null-checking) might not be enough to justify the risk of lock- in?

Personally, I quite like Kotlin, but I haven't been able to convince most of my greybeard colleagues to make the leap.

by jascha_engon 7/24/2025, 12:57 PM

The worst thing about kotlin is the intellij lock in. VSCode support is exceptionally poor and that makes using modern AI tooling (like cursor) a pain.

by robchon 7/24/2025, 12:28 PM

I have been using detekt for work and personal projects for years now. Writing advanced lint rules that take advantage type resolution makes it the best linter for Kotlin. I just hope they get k2 support soon.

by LennyWhiteJron 7/24/2025, 1:59 PM

I love Detekt! It's particularly good for enforcing project conventions that can't be covered with standard linters. With access to the full AST, you can basically enforce any kind of rule you want with custom analyzers. And LLMs take out 90% of the effort for creating new analyzers.

by synessoon 7/24/2025, 11:58 AM

I've been using detekt for years. Why is this suddenly the top article on HN?

by cruz101on 7/25/2025, 3:59 PM

curious why this is being shared? Ive been using detekt for kotlin backend projects. It gets the the job done. Is there some new release or feature?