Skip to content

Commit d7c33ac

Browse files
committed
Updated Detekt configuration to v2.0.0
1 parent 555fc2b commit d7c33ac

3 files changed

Lines changed: 17 additions & 4 deletions

File tree

app/build.gradle.kts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import dev.detekt.gradle.Detekt
12
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23

34
plugins {
@@ -75,9 +76,6 @@ kotlin {
7576
room {
7677
schemaDirectory(path = "$projectDir/schemas")
7778
}
78-
tasks.withType<Test> {
79-
useJUnitPlatform()
80-
}
8179

8280
dependencies {
8381
//region AndroidX Libraries
@@ -148,4 +146,17 @@ dependencies {
148146
androidTestImplementation(libs.mockk.android)
149147
androidTestImplementation(libs.turbine)
150148
//endregion
149+
}
150+
151+
tasks.withType<Test> {
152+
useJUnitPlatform()
153+
}
154+
155+
tasks.withType<Detekt>().configureEach {
156+
reports {
157+
checkstyle.required.set(true)
158+
html.required.set(true)
159+
sarif.required.set(true)
160+
markdown.required.set(true)
161+
}
151162
}

app/src/main/java/com/codermp/composeandroidtemplate/core/presentation/designsystem/theme/Color.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("MagicNumber")
2+
13
package com.codermp.composeandroidtemplate.core.presentation.designsystem.theme
24

35
import androidx.compose.ui.graphics.Color

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ android-application = { id = "com.android.application", version.ref = "agp" }
125125
android-library = { id = "com.android.library", version.ref = "agp" }
126126
detekt = { id = "dev.detekt", version.ref= "detekt" }
127127
junit5 = { id = "de.mannodermaus.android-junit5", version.ref = "junit5-plugin" }
128-
kotlin-android = { id = "org.jetbrains.kotlin.android", version = "2.3.10" }
128+
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
129129
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
130130
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
131131
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

0 commit comments

Comments
 (0)