Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed Aug 22, 2023
1 parent f609d95 commit 9d17939
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ style:
OptionalUnit:
active: true
BracesOnWhenStatements:
active: true
active: false
singleLine: 'never'
multiLine: 'consistent'
multiLine: 'necessary'
PreferToOverPairSyntax:
active: false
ProtectedMemberInFinalClass:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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<KspCliOption, List<String>> {
val pluginOptions = execution.configuration.getChild("pluginOptions") ?: return emptyMap()
val availableOptions = KspCliOption.values().associateBy { it.optionName }
Expand Down

0 comments on commit 9d17939

Please sign in to comment.