diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 1722b2413..a6bd6bf7e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -19,7 +19,7 @@ kaml = "0.59.0" kotlin = "1.9.23" kotlinPoet = "1.16.0" ksp = "1.9.23-1.0.20" -ktfmt = "0.47" +ktfmt = "0.49" markdown = "0.16.0" mavenPublish = "0.28.0" moshi = "1.15.1" diff --git a/skate-plugin/src/main/kotlin/com/slack/sgp/intellij/tracing/SkateTracingEvent.kt b/skate-plugin/src/main/kotlin/com/slack/sgp/intellij/tracing/SkateTracingEvent.kt index dda07e035..abcb13b5c 100644 --- a/skate-plugin/src/main/kotlin/com/slack/sgp/intellij/tracing/SkateTracingEvent.kt +++ b/skate-plugin/src/main/kotlin/com/slack/sgp/intellij/tracing/SkateTracingEvent.kt @@ -24,7 +24,7 @@ sealed interface SkateTracingEvent { enum class WhatsNew : SkateTracingEvent { PANEL_OPENED, - PANEL_CLOSED + PANEL_CLOSED, } enum class HoustonFeatureFlag : SkateTracingEvent { diff --git a/skate-plugin/src/test/testData/Call.kt b/skate-plugin/src/test/testData/Call.kt index 33444a6cd..c734896dc 100644 --- a/skate-plugin/src/test/testData/Call.kt +++ b/skate-plugin/src/test/testData/Call.kt @@ -39,14 +39,14 @@ data class Call( UNKNOWN, @Json(name = "join") JOIN, @Json(name = "decline") DECLINE, - @Json(name = "retry") RETRY + @Json(name = "retry") RETRY, } @JsonClass(generateAdapter = false) enum class RetryText { UNKNOWN, @Json(name = "call_back") CALL_BACK, - @Json(name = "call_again") CALL_AGAIN + @Json(name = "call_again") CALL_AGAIN, } @JsonClass(generateAdapter = false) @@ -58,7 +58,7 @@ data class Call( @Json(name = "active") ACTIVE, @Json(name = "ended") ENDED, @Json(name = "missed") MISSED, - @Json(name = "declined") DECLINED + @Json(name = "declined") DECLINED, } @JsonClass(generateAdapter = true) @@ -69,7 +69,7 @@ data class Call( UNKNOWN, @Json(name = "complete") COMPLETE, @Json(name = "failed") FAILED, - @Json(name = "processing") PROCESSING + @Json(name = "processing") PROCESSING, } } } diff --git a/slack-plugin/src/main/kotlin/slack/dependencyrake/DependencyRake.kt b/slack-plugin/src/main/kotlin/slack/dependencyrake/DependencyRake.kt index 428fc4912..f639219bf 100644 --- a/slack-plugin/src/main/kotlin/slack/dependencyrake/DependencyRake.kt +++ b/slack-plugin/src/main/kotlin/slack/dependencyrake/DependencyRake.kt @@ -404,7 +404,7 @@ constructor(objects: ObjectFactory, providers: ProviderFactory) : AbstractPostPr MISUSED, /** Remove unused or redundant plugins. */ - PLUGINS + PLUGINS, } } diff --git a/slack-plugin/src/main/kotlin/slack/gradle/SlackGradleUtil.kt b/slack-plugin/src/main/kotlin/slack/gradle/SlackGradleUtil.kt index 6690f187f..9ddfa7b4e 100644 --- a/slack-plugin/src/main/kotlin/slack/gradle/SlackGradleUtil.kt +++ b/slack-plugin/src/main/kotlin/slack/gradle/SlackGradleUtil.kt @@ -125,7 +125,7 @@ public enum class SupportedLanguagesEnum { INTERNAL, /** Languages included in Beta builds */ - BETA + BETA, } public val Project.fullGitSha: Provider diff --git a/slack-plugin/src/main/kotlin/slack/gradle/SlackProperties.kt b/slack-plugin/src/main/kotlin/slack/gradle/SlackProperties.kt index c15506d32..a01180608 100644 --- a/slack-plugin/src/main/kotlin/slack/gradle/SlackProperties.kt +++ b/slack-plugin/src/main/kotlin/slack/gradle/SlackProperties.kt @@ -516,7 +516,7 @@ internal constructor( /* Test retry controls. */ public enum class TestRetryPluginType { RETRY_PLUGIN, - GE + GE, } public val testRetryPluginType: TestRetryPluginType @@ -538,9 +538,11 @@ internal constructor( /** Detekt config files, evaluated from rootProject.file(...). */ public val detektConfigs: List? get() = optionalStringProperty("slack.detekt.configs")?.split(",") + /** Detekt baseline file, evaluated from project.layout.projectDirectory.file(...). */ public val detektBaselineFileName: String? get() = optionalStringProperty("slack.detekt.baseline-file-name", blankIsNull = true) + /** Enables full detekt mode (with type resolution). Off by default due to performance issues. */ public val enableFullDetekt: Boolean get() = booleanProperty("slack.detekt.full") diff --git a/slack-plugin/src/main/kotlin/slack/gradle/tasks/BootstrapTask.kt b/slack-plugin/src/main/kotlin/slack/gradle/tasks/BootstrapTask.kt index ccc3f30a3..8b7834ffd 100644 --- a/slack-plugin/src/main/kotlin/slack/gradle/tasks/BootstrapTask.kt +++ b/slack-plugin/src/main/kotlin/slack/gradle/tasks/BootstrapTask.kt @@ -84,7 +84,7 @@ public enum class BootstrapPropertiesMode { /** Append them to the target gradle.properties file. */ APPEND, /** Overwrite them in the target gradle.properties file. */ - OVERWRITE + OVERWRITE, } private val BYTES_PER_GB = 1024.0.pow(3) diff --git a/slack-plugin/src/main/kotlin/slack/gradle/util/charting/ChartFill.kt b/slack-plugin/src/main/kotlin/slack/gradle/util/charting/ChartFill.kt index a0f3a5b33..830aa9395 100644 --- a/slack-plugin/src/main/kotlin/slack/gradle/util/charting/ChartFill.kt +++ b/slack-plugin/src/main/kotlin/slack/gradle/util/charting/ChartFill.kt @@ -24,6 +24,6 @@ internal data class ChartFill(val type: FillType, val color: Color) : ChartPrope enum class FillType(val type: String) { TRANSPARENT("a"), BACKGROUND("bg"), - CHART("c") + CHART("c"), } }