Skip to content

Commit

Permalink
Upgrade ktlint 0.50.0 to 1.2.1 (cashapp#1409)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
TWiStErRob and renovate[bot] authored May 5, 2024
1 parent ef12578 commit 541376f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ insert_final_newline = true
end_of_line = lf

[*.{kt, kts}]
ktlint_code_style = intellij_idea
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,kotlinx.**,^
ij_kotlin_allow_trailing_comma = false
ij_kotlin_allow_trailing_comma_on_call_site = false

ktlint_standard_argument-list-wrapping = disabled
ktlint_standard_value-argument-comment = disabled
ktlint_function_naming_ignore_when_annotated_with = Composable
ktlint_function_naming_ignore_when_annotated_with = Composable
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ coroutines = "1.8.0"
javaTarget = "11"
kotlin = "1.9.23"
ksp = "1.9.23-1.0.20"
ktlint = "0.50.0"
ktlint = "1.2.1"
moshi = "1.15.1"

minSdk = "25"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ class LoggerLeakTest {
}

@Composable
private fun ComposeContent() { throw Exception() }
private fun ComposeContent() {
throw Exception()
}
}
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies {

// https://github.com/diffplug/spotless/issues/1572
tasks.withType(com.diffplug.gradle.spotless.SpotlessTask).configureEach {
dependsOn(tasks.withType(Test))
mustRunAfter(tasks.withType(Test))
}

apply from: 'guava-fix.gradle'

0 comments on commit 541376f

Please sign in to comment.