diff --git a/.editorconfig b/.editorconfig index 8d614f4d..8685aae5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,11 +9,11 @@ tab_width = 4 trim_trailing_whitespace = true insert_final_newline = true -[*.{json, yml, xml, html, css, md, pro}] +[*.{json,yml,xml,html,css,md,pro}] indent_size = 2 tab_width = 2 -[{*.kt, *.kts}] +[{*.kt,*.kts}] max_line_length = 140 ij_continuation_indent_size = 4 ij_kotlin_align_in_columns_case_branch = false diff --git a/detekt-compose.yml b/detekt-compose.yml index 0b55f842..feebb8b5 100644 --- a/detekt-compose.yml +++ b/detekt-compose.yml @@ -1,9 +1,7 @@ -# https://github.com/twitter/compose-rules/blob/main/rules/detekt/src/main/resources/config/config.yml -TwitterCompose: +# https://github.com/mrmans0n/compose-rules/blob/main/rules/detekt/src/main/resources/config/config.yml +Compose: CompositionLocalAllowlist: active: true - CompositionLocalNaming: - active: true ContentEmitterReturningValues: active: true ModifierComposable: diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index aba42a9e..b6f0b7e5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -145,8 +145,9 @@ plugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version. plugin-detekt = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detekt" } plugin-android = { module = "com.android.tools.build:gradle", version.ref = "android-gradle-plugin" } -# https://github.com/twitter/compose-rules/releases -detekt-compose = { module = "com.twitter.compose.rules:detekt", version = "0.0.26" } +# https://github.com/mrmans0n/compose-rules/releases +# https://mvnrepository.com/artifact/io.nlopez.compose.rules/detekt +detekt-compose = { module = "io.nlopez.compose.rules:detekt", version = "0.1.1" } detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" } detekt-core = { module = "io.gitlab.arturbosch.detekt:detekt-core", version.ref = "detekt" }