Hey all :wave: We (<#C88E12QH4|detekt>) are in the...
# multiplatform
g
Hey all 👋 We (#detekt) are in the process of adding support for Kotlin Multiplatform projects 🎉 I’m writing as: • I’m looking for someone to help us with a Gradle question. Specifically I’m unsure why the Gradle KMM plugin is creating a
metadata
target with several compilations (e.g. both
main
and
commonMain
). More details are in this Github PR. • I’m looking for someone that would be interested in trying Detekt in a KMM project in some form.
👋 1
K 14
j
if you remove
android()
,
main
dissapears?
g
Nope, it stays
So seems like the
metadata
target has by default compilations:
main
and
commonMain
. If the project has a
ios()
target, then
metadata
it receives also the
iosMain
compilation.
👍 1
n
@gammax I’d be happy to try it out, created an issue at halcyonmobile/MultiplatformPlayground#12
c
Copy code
common:detekt
common:detektBaseline - Creates a detekt baseline on the given --baseline path.
common:detektBaselineIosMain - Creates detekt baseline for ios and source set main
common:detektBaselineIosTest - Creates detekt baseline for ios and source set test
common:detektGenerateConfig - Generate a detekt configuration file inside your project.
common:detektIosMain - Run detekt analysis for target ios and source set main
common:detektIosTest - Run detekt analysis for target ios and source set test
➜  MultiplatformPlayground git:(master) ✗ ./gradlew tasks --all | grep detekt
common:detekt
common:detektAndroidDebug - EXPERIMENTAL: Run detekt analysis for target android and source set debug with type resolution.
common:detektAndroidDebugAndroidTest - EXPERIMENTAL: Run detekt analysis for target android and source set debugAndroidTest with type resolution.
common:detektAndroidDebugUnitTest - EXPERIMENTAL: Run detekt analysis for target android and source set debugUnitTest with type resolution.
common:detektAndroidRelease - EXPERIMENTAL: Run detekt analysis for target android and source set release with type resolution.
common:detektAndroidReleaseUnitTest - EXPERIMENTAL: Run detekt analysis for target android and source set releaseUnitTest with type resolution.
common:detektBaseline - Creates a detekt baseline on the given --baseline path.
common:detektBaselineAndroidDebug - EXPERIMENTAL: Creates detekt baseline for android and source set debug with type resolution.
common:detektBaselineAndroidDebugAndroidTest - EXPERIMENTAL: Creates detekt baseline for android and source set debugAndroidTest with type resolution.
common:detektBaselineAndroidDebugUnitTest - EXPERIMENTAL: Creates detekt baseline for android and source set debugUnitTest with type resolution.
common:detektBaselineAndroidRelease - EXPERIMENTAL: Creates detekt baseline for android and source set release with type resolution.
common:detektBaselineAndroidReleaseUnitTest - EXPERIMENTAL: Creates detekt baseline for android and source set releaseUnitTest with type resolution.
common:detektBaselineIosMain - Creates detekt baseline for ios and source set main
common:detektBaselineIosTest - Creates detekt baseline for ios and source set test
common:detektGenerateConfig - Generate a detekt configuration file inside your project.
common:detektIosMain - Run detekt analysis for target ios and source set main
common:detektIosTest - Run detekt analysis for target ios and source set test
I was applying the PR to the provided
MultiplatformPlayground
and it is registering the expected set of tasks
👌 2
Copy code
➜  MultiplatformPlayground git:(master) ✗ ./gradlew tasks --all | grep detekt
common:detekt
common:detektAndroidDebug - EXPERIMENTAL: Run detekt analysis for target android and source set debug with type resolution.
common:detektAndroidDebugAndroidTest - EXPERIMENTAL: Run detekt analysis for target android and source set debugAndroidTest with type resolution.
common:detektAndroidDebugUnitTest - EXPERIMENTAL: Run detekt analysis for target android and source set debugUnitTest with type resolution.
common:detektAndroidRelease - EXPERIMENTAL: Run detekt analysis for target android and source set release with type resolution.
common:detektAndroidReleaseUnitTest - EXPERIMENTAL: Run detekt analysis for target android and source set releaseUnitTest with type resolution.
common:detektBaseline - Creates a detekt baseline on the given --baseline path.
common:detektBaselineAndroidDebug - EXPERIMENTAL: Creates detekt baseline for android and source set debug with type resolution.
common:detektBaselineAndroidDebugAndroidTest - EXPERIMENTAL: Creates detekt baseline for android and source set debugAndroidTest with type resolution.
common:detektBaselineAndroidDebugUnitTest - EXPERIMENTAL: Creates detekt baseline for android and source set debugUnitTest with type resolution.
common:detektBaselineAndroidRelease - EXPERIMENTAL: Creates detekt baseline for android and source set release with type resolution.
common:detektBaselineAndroidReleaseUnitTest - EXPERIMENTAL: Creates detekt baseline for android and source set releaseUnitTest with type resolution.
common:detektBaselineIosMain - Creates detekt baseline for ios and source set main
common:detektBaselineIosTest - Creates detekt baseline for ios and source set test
common:detektGenerateConfig - Generate a detekt configuration file inside your project.
common:detektIosMain - Run detekt analysis for target ios and source set main
common:detektIosTest - Run detekt analysis for target ios and source set test