diff --git a/.editorconfig b/.editorconfig index 1d5b9050b..9e40bbab6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,4 +10,11 @@ max_line_length = 120 indent_size = 2 [*.{kt,kts}] -disabled_rules=filename,import-ordering +ktlint_standard_annotation = disabled +ktlint_standard_no-empty-first-line-in-class-body = disabled +ktlint_standard_blank-line-before-declaration = disabled +ktlint_standard_multiline-expression-wrapping = disabled +ktlint_standard_string-template-indent = disabled +ktlint_standard_spacing-between-declarations-with-annotations = disabled +ktlint_standard_function-signature = disabled +ktlint_standard_class-signature = disabled diff --git a/build.gradle.kts b/build.gradle.kts index 69edd8b8d..74c1a28c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -75,6 +75,7 @@ allprojects { version.set(versions.ktlint) android.set(true) outputToConsole.set(true) + verbose.set(true) filter { // https://github.com/JLLeitschuh/ktlint-gradle/issues/266#issuecomment-529527697 diff --git a/buildSrc/src/main/java/Dependencies.kt b/buildSrc/src/main/java/Dependencies.kt index 8c88d5c63..abf9040a7 100644 --- a/buildSrc/src/main/java/Dependencies.kt +++ b/buildSrc/src/main/java/Dependencies.kt @@ -39,8 +39,8 @@ object versions { const val kspPlugin = "2.0.0-1.0.24" const val daggerHilt = "2.51.1" const val detektPlugin = "1.23.6" - const val ktlintPlugin = "10.3.0" - const val ktlint = "0.45.2" + const val ktlintPlugin = "12.1.1" + const val ktlint = "1.3.1" const val coroutines = "1.8.1" const val room = "2.6.1" }