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 "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_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 {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
apply plugin: "io.gitlab.arturbosch.detekt"
|
||||
|
||||
detekt {
|
||||
toolVersion = "$detekt_version"
|
||||
|
|
@ -16,14 +17,15 @@ detekt {
|
|||
source = files(*projectPaths)
|
||||
config = files("$projectDir/detekt/detekt.yml")
|
||||
baseline = file("$projectDir/detekt/baseline.xml")
|
||||
}
|
||||
|
||||
tasks.getByName("detekt") {
|
||||
reports {
|
||||
txt {
|
||||
enabled = true
|
||||
destination = file("build/reports/detekt.txt")
|
||||
}
|
||||
html {
|
||||
enabled = true
|
||||
destination = file("build/reports/detekt.html")
|
||||
}
|
||||
txt.required.set(true)
|
||||
txt.outputLocation.set(file("build/reports/detekt.txt"))
|
||||
html.required.set(true)
|
||||
html.outputLocation.set(file("build/reports/detekt.html"))
|
||||
xml.required.set(false)
|
||||
sarif.required.set(false)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue