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

View file

@ -12,7 +12,7 @@ import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.configure
object Detekt { object Detekt {
private const val TWITTER_RULES_VERSION = "0.0.26" private const val COMPOSE_RULES_VERSION = "0.1.1"
fun apply(project: Project) { fun apply(project: Project) {
project.pluginManager.apply(DetektPlugin::class.java) project.pluginManager.apply(DetektPlugin::class.java)
@ -29,7 +29,7 @@ object Detekt {
} }
project.dependencies.add( project.dependencies.add(
"detektPlugins", "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: excludeImports:
- 'java.util.*' - 'java.util.*'
TwitterCompose: Compose:
CompositionLocalAllowlist: CompositionLocalAllowlist:
active: true active: true
# allowedCompositionLocals: LocalSomething,LocalSomethingElse # allowedCompositionLocals: LocalSomething,LocalSomethingElse
CompositionLocalNaming:
active: true
ContentEmitterReturningValues: ContentEmitterReturningValues:
active: true active: true
# contentEmitters: MyComposable,MyOtherComposable # contentEmitters: MyComposable,MyOtherComposable