Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency com.facebook:ktfmt to v0.49 #830

Merged
merged 2 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sealed interface SkateTracingEvent {

enum class WhatsNew : SkateTracingEvent {
PANEL_OPENED,
PANEL_CLOSED
PANEL_CLOSED,
}

enum class HoustonFeatureFlag : SkateTracingEvent {
Expand Down
8 changes: 4 additions & 4 deletions skate-plugin/src/test/testData/Call.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -69,7 +69,7 @@ data class Call(
UNKNOWN,
@Json(name = "complete") COMPLETE,
@Json(name = "failed") FAILED,
@Json(name = "processing") PROCESSING
@Json(name = "processing") PROCESSING,
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ constructor(objects: ObjectFactory, providers: ProviderFactory) : AbstractPostPr
MISUSED,

/** Remove unused or redundant plugins. */
PLUGINS
PLUGINS,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public enum class SupportedLanguagesEnum {
INTERNAL,

/** Languages included in Beta builds */
BETA
BETA,
}

public val Project.fullGitSha: Provider<String>
Expand Down
4 changes: 3 additions & 1 deletion slack-plugin/src/main/kotlin/slack/gradle/SlackProperties.kt
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ internal constructor(
/* Test retry controls. */
public enum class TestRetryPluginType {
RETRY_PLUGIN,
GE
GE,
}

public val testRetryPluginType: TestRetryPluginType
Expand All @@ -538,9 +538,11 @@ internal constructor(
/** Detekt config files, evaluated from rootProject.file(...). */
public val detektConfigs: List<String>?
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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}