Skip to content

Commit ab628d8

Browse files
committed
chore: enable data flow exhaustiveness
1 parent 24f99fe commit ab628d8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ org-name = "suresh.dev"
2020
org-url = "https://suresh.dev"
2121

2222
# Dependency Versions
23-
bc-plugins = "2.18.0"
23+
bc-plugins = "2.19.0"
2424
kotlinx-kover = "0.9.3"
2525
kotlin-dokka = "2.1.0"
2626
kotlinx-io = "0.8.0"

plugins/project/src/main/kotlin/common/ProjectExtns.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ fun KotlinCommonCompilerOptions.configureKotlinCommon(project: Project) =
413413
freeCompilerArgs.addAll(
414414
"-Xcontext-parameters",
415415
"-Xexpect-actual-classes",
416-
"-Xskip-prerelease-check",
417416
"-Xwhen-guards",
418417
"-Xmulti-dollar-interpolation",
419418
"-Xnon-local-break-continue",
@@ -422,6 +421,8 @@ fun KotlinCommonCompilerOptions.configureKotlinCommon(project: Project) =
422421
"-Xreturn-value-checker=check",
423422
"-Xcontext-sensitive-resolution",
424423
"-Xannotation-default-target=param-property",
424+
"-Xdata-flow-based-exhaustiveness",
425+
// "-Xskip-prerelease-check",
425426
// "-Xsuppress-version-warnings",
426427
// "-P",
427428
// "plugin:...=..."

plugins/project/src/main/kotlin/dev.suresh.plugin.kotlin.mpp.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ kotlin {
9898
// val compilation = commonTarget.compilations["main"]
9999

100100
// Add a task output as sourceSet
101-
// compilation.defaultSourceSet.kotlin.srcDir(buildConfig)
101+
// compilation.defaultSourceSet.generatedKotlin.srcDir(buildConfig)
102+
// OR sourceSets.getByName("main").generatedKotlin.srcDir(buildConfig)
102103

103104
// Add new sourceSet
104105
// val newSourceSet = sourceSets.create("gen")

0 commit comments

Comments
 (0)