diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 36d7fad..76c37a3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ kctfork_ksp = { module = "dev.zacsweers.kctfork:ksp", version.ref = "kctfork" } ksp_gradle_plugin = { module = "com.google.devtools.ksp:symbol-processing-gradle-plugin", version.ref = "ksp" } ksp_api = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" } kotlin_gradle_plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } -ktlint = { module = "com.pinterest.ktlint:ktlint-cli", version = "1.3.1" } +ktlint = { module = "com.pinterest.ktlint:ktlint-cli", version = "1.4.0" } anvil_annotations = { module = "com.squareup.anvil:annotations", version.ref = "anvil" } anvil_compiler = { module = "com.squareup.anvil:compiler", version.ref = "anvil" } diff --git a/lightsaber/src/test/kotlin/schwarz/it/lightsaber/checkers/UnusedScopesKtTest.kt b/lightsaber/src/test/kotlin/schwarz/it/lightsaber/checkers/UnusedScopesKtTest.kt index cd31a5f..da598fd 100644 --- a/lightsaber/src/test/kotlin/schwarz/it/lightsaber/checkers/UnusedScopesKtTest.kt +++ b/lightsaber/src/test/kotlin/schwarz/it/lightsaber/checkers/UnusedScopesKtTest.kt @@ -449,11 +449,10 @@ private fun CompilationResult.assertUnusedScopes(message: String, line: Int, col ) } -private fun CompilationResult.finding(message: String, line: Int, column: Int?) = - FindingInfo( - message = message, - line = line, - column = column, - ruleName = "UnusedScopes", - fileName = sourcesDir.resolve("test/MyComponent.${type.extension}").toString(), - ) +private fun CompilationResult.finding(message: String, line: Int, column: Int?) = FindingInfo( + message = message, + line = line, + column = column, + ruleName = "UnusedScopes", + fileName = sourcesDir.resolve("test/MyComponent.${type.extension}").toString(), +)