Issue#35 Update Detekt reports
This commit is contained in:
parent
90b5334af8
commit
1a78899677
2 changed files with 11 additions and 12 deletions
|
|
@ -15,13 +15,10 @@ buildscript {
|
||||||
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
|
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.2.1"
|
||||||
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
|
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
|
||||||
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
||||||
|
classpath "io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$detekt_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
|
||||||
id "io.gitlab.arturbosch.detekt" version "$detekt_version"
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
apply plugin: "io.gitlab.arturbosch.detekt"
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
toolVersion = "$detekt_version"
|
toolVersion = "$detekt_version"
|
||||||
|
|
@ -16,14 +17,15 @@ detekt {
|
||||||
source = files(*projectPaths)
|
source = files(*projectPaths)
|
||||||
config = files("$projectDir/detekt/detekt.yml")
|
config = files("$projectDir/detekt/detekt.yml")
|
||||||
baseline = file("$projectDir/detekt/baseline.xml")
|
baseline = file("$projectDir/detekt/baseline.xml")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.getByName("detekt") {
|
||||||
reports {
|
reports {
|
||||||
txt {
|
txt.required.set(true)
|
||||||
enabled = true
|
txt.outputLocation.set(file("build/reports/detekt.txt"))
|
||||||
destination = file("build/reports/detekt.txt")
|
html.required.set(true)
|
||||||
}
|
html.outputLocation.set(file("build/reports/detekt.html"))
|
||||||
html {
|
xml.required.set(false)
|
||||||
enabled = true
|
sarif.required.set(false)
|
||||||
destination = file("build/reports/detekt.html")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue