mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 01:17:05 +05:30
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:
parent
4c44df3136
commit
9638c8bab5
3 changed files with 5 additions and 7 deletions
4
.github/renovate.json5
vendored
4
.github/renovate.json5
vendored
|
@ -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/",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -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",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue