mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Detekt for all modules.
This commit is contained in:
@@ -4,7 +4,6 @@ plugins {
|
|||||||
alias(libs.plugins.ksp)
|
alias(libs.plugins.ksp)
|
||||||
id("com.google.firebase.appdistribution") version "3.0.2"
|
id("com.google.firebase.appdistribution") version "3.0.2"
|
||||||
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
|
id("org.jlleitschuh.gradle.ktlint") version "11.0.0"
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.22.0"
|
|
||||||
id("org.jetbrains.kotlinx.knit") version "0.4.0"
|
id("org.jetbrains.kotlinx.knit") version "0.4.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,18 +156,6 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
|
||||||
// TODO it does not seem to analyse subprojects.
|
|
||||||
detekt {
|
|
||||||
// preconfigure defaults
|
|
||||||
buildUponDefaultConfig = true
|
|
||||||
// activate all available (even unstable) rules.
|
|
||||||
allRules = true
|
|
||||||
// point to your custom config defining rules to run, overwriting default behavior
|
|
||||||
config = files("$rootDir/tools/detekt/detekt.yml")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":libraries:designsystem"))
|
implementation(project(":libraries:designsystem"))
|
||||||
implementation(project(":libraries:matrix"))
|
implementation(project(":libraries:matrix"))
|
||||||
@@ -191,5 +178,4 @@ dependencies {
|
|||||||
|
|
||||||
implementation(libs.showkase)
|
implementation(libs.showkase)
|
||||||
ksp(libs.showkase.processor)
|
ksp(libs.showkase.processor)
|
||||||
detektPlugins("com.twitter.compose.rules:detekt:0.0.26")
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,26 @@ plugins {
|
|||||||
alias(libs.plugins.android.library) apply false
|
alias(libs.plugins.android.library) apply false
|
||||||
alias(libs.plugins.kotlin.android) apply false
|
alias(libs.plugins.kotlin.android) apply false
|
||||||
alias(libs.plugins.ksp) apply false
|
alias(libs.plugins.ksp) apply false
|
||||||
|
id("io.gitlab.arturbosch.detekt") version "1.22.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.register<Delete>("clean").configure {
|
tasks.register<Delete>("clean").configure {
|
||||||
delete(rootProject.buildDir)
|
delete(rootProject.buildDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
apply {
|
||||||
|
plugin("io.gitlab.arturbosch.detekt")
|
||||||
|
}
|
||||||
|
detekt {
|
||||||
|
// preconfigure defaults
|
||||||
|
buildUponDefaultConfig = true
|
||||||
|
// activate all available (even unstable) rules.
|
||||||
|
allRules = true
|
||||||
|
// point to your custom config defining rules to run, overwriting default behavior
|
||||||
|
config = files("$rootDir/tools/detekt/detekt.yml")
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
detektPlugins("com.twitter.compose.rules:detekt:0.0.26")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user