feat(deps): switch to Nacho's compose-rules fork

He is continuining maintenance of the work he started at Twitter.
This commit is contained in:
Harsh Shandilya 2023-02-10 22:28:03 +05:30
parent 4c44df3136
commit 9638c8bab5
No known key found for this signature in database
3 changed files with 5 additions and 7 deletions

View file

@ -55,10 +55,10 @@
"Detekt\.kt$"
],
"matchStrings": [
"TWITTER_RULES_VERSION = \"(?<currentValue>.*)\""
"COMPOSE_RULES_VERSION = \"(?<currentValue>.*)\""
],
"datasourceTemplate": "maven",
"depNameTemplate": "com.twitter.compose.rules:detekt",
"depNameTemplate": "io.nlopez.compose.rules:detekt",
"registryUrlTemplate": "https://repo1.maven.org/maven2/",
},
{

View file

@ -12,7 +12,7 @@ import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
object Detekt {
private const val TWITTER_RULES_VERSION = "0.0.26"
private const val COMPOSE_RULES_VERSION = "0.1.1"
fun apply(project: Project) {
project.pluginManager.apply(DetektPlugin::class.java)
@ -29,7 +29,7 @@ object Detekt {
}
project.dependencies.add(
"detektPlugins",
"com.twitter.compose.rules:detekt:$TWITTER_RULES_VERSION",
"io.nlopez.compose.rules:detekt:$COMPOSE_RULES_VERSION",
)
}
}

View file

@ -697,12 +697,10 @@ style:
excludeImports:
- 'java.util.*'
TwitterCompose:
Compose:
CompositionLocalAllowlist:
active: true
# allowedCompositionLocals: LocalSomething,LocalSomethingElse
CompositionLocalNaming:
active: true
ContentEmitterReturningValues:
active: true
# contentEmitters: MyComposable,MyOtherComposable