diff --git a/detekt.yml b/detekt.yml index 100b11a4..cb0d52b2 100644 --- a/detekt.yml +++ b/detekt.yml @@ -436,9 +436,9 @@ style: OptionalUnit: active: true BracesOnWhenStatements: - active: true + active: false singleLine: 'never' - multiLine: 'consistent' + multiLine: 'necessary' PreferToOverPairSyntax: active: false ProtectedMemberInFinalClass: diff --git a/ktorm-ksp-compiler-maven-plugin/src/main/kotlin/org/ktorm/ksp/compiler/maven/KtormKspMavenPluginExtension.kt b/ktorm-ksp-compiler-maven-plugin/src/main/kotlin/org/ktorm/ksp/compiler/maven/KtormKspMavenPluginExtension.kt index cf7c6a2f..777c3588 100644 --- a/ktorm-ksp-compiler-maven-plugin/src/main/kotlin/org/ktorm/ksp/compiler/maven/KtormKspMavenPluginExtension.kt +++ b/ktorm-ksp-compiler-maven-plugin/src/main/kotlin/org/ktorm/ksp/compiler/maven/KtormKspMavenPluginExtension.kt @@ -28,7 +28,7 @@ import org.jetbrains.kotlin.maven.PluginOption import java.io.File /** - * Extension that enables KSP for the kotlin maven plugin + * Extension that enables KSP for the kotlin maven plugin. */ @Component(role = KotlinMavenPluginExtension::class, hint = "ksp") public class KtormKspMavenPluginExtension : KotlinMavenPluginExtension { @@ -48,6 +48,7 @@ public class KtormKspMavenPluginExtension : KotlinMavenPluginExtension { return options.map { (option, value) -> PluginOption("ksp", compilerPluginId, option.optionName, value) } } + @Suppress("UnusedPrivateMember") private fun parseUserOptions(execution: MojoExecution): Map> { val pluginOptions = execution.configuration.getChild("pluginOptions") ?: return emptyMap() val availableOptions = KspCliOption.values().associateBy { it.optionName }