https://kotlinlang.org logo
#detekt
Title
# detekt
c

chao

03/24/2021, 4:06 PM
Android Lint published api guidelines yesterday. This is a great read and can inspire more changes for Detekt http://googlesamples.github.io/android-custom-lint-rules/
K 11
n

nkiesel

03/24/2021, 11:13 PM
is this tool also available separately from Android Studio and/or for IntellJ IDEA? I'm coding for JVM backend and thus do not use Android Studio.
k

kenkyee

03/24/2021, 11:27 PM
Detekt? Or Android lint? I use detekt on a spring boot project...and ktlint...
c

chao

03/24/2021, 11:27 PM
@nkiesel this is for Android projects only unfortunately
@kenkyee Android lint. I find these guidelines useful for lighting the path for detekt in the future
k

kenkyee

03/24/2021, 11:28 PM
I was replying to Norbert. I use Android lint too...for Android 🙂
👍 1
n

nkiesel

03/25/2021, 12:14 AM
Documentation of this lint tool says:
Android Lint is a static analysis tool (which despite the name is not limited to Android, and within Google for example is used to analyze Java and Kotlin server side code as well as Android and even desktop software like IDEs.)
Thus, should be more generic
k

kenkyee

03/25/2021, 1:37 AM
🤷‍♂️I wouldn't use it on backend code...
n

nkiesel

03/25/2021, 7:23 AM
Why? Looks pretty powerful
c

chao

03/27/2021, 6:20 PM
Android lint is not officially supported for Java/Kotlin projects. So use it at own risk and android lint upgrade may have incompatible changes without further notice
w

wasyl

03/27/2021, 8:22 PM
Is it an official guidance that Android Lint is not supported for non-Android projects? There’s even a non-deprecated Gradle plugin to run Lint in pure Kotlin projects: https://android.googlesource.com/platform/tools/base/+/refs/heads/mirror-goog-studio-mast[…]ore/src/main/java/com/android/build/gradle/LintPlugin.kt
c

chao

03/27/2021, 8:24 PM
w

wasyl

03/27/2021, 8:28 PM
Do you refer to the
The purpose of this is to let teams use lint on projects that are unrelated
to Android
which suggests that it’s supported only internally?
c

chao

03/27/2021, 8:28 PM
Yes that’s my interpretation
w

wasyl

03/27/2021, 8:30 PM
Yep, fair. Maybe something’s changed but I agree it’s not entirely clear what’s the level of support right now, I also couldn’t find anything that explicitly says it’s supported (or not supported) so 👍
2 Views