https://kotlinlang.org logo
Title
k

Khurram Malik

11/12/2021, 9:34 AM
Hello everyone, i've been working on Kotlin server application for a while now and i am thinking of adding automated linting checks on future PRs. I've searched a bit on the internet what linting plugins are available for Kotlin. I could not find anything that is official Jetbrains developed. So the question is: 1. Are there any plans of developing an official linting library for Kotlin? 2. Are there any recommendations from Kotlin team what linting library developers should use?
s

simon.vergauwen

11/12/2021, 9:38 AM
Detekt is a popular one, #detekt. Another one is KtLint, but it doesn’t really do a lot of automated linting checks more auto-formatting. For auto-formatting there is also KtFmt. All 3 can work nicely together. There is also support for Detekt to automatically make comments for code smells etc on Git platforms.
☝️ 1
🙌 1
e

edrd

11/12/2021, 12:04 PM
JetBrains recently announced Qodana: https://www.jetbrains.com/qodana/jvm/
1
✔️ 1
s

simon.vergauwen

11/12/2021, 12:07 PM
That works specifically for JVM, no? Or doesn’t it also offer help for Kotlin specific linting ?
k

Khurram Malik

11/12/2021, 1:49 PM
@edrd It is perfect for my use-case since i am developing on jvm.
🤘 1