[6.1.0] fix bug of detekt html output

This commit is contained in:
zhongchao
2023-10-07 17:27:28 +08:00
parent 50be53e550
commit ac5402d8a2
2 changed files with 5 additions and 4 deletions

View File

@@ -9,13 +9,14 @@ detekt {
"src/jinlvvan/java",
"src/driverm1/java"
)
parallel = false
//将配置文件应用于detekt的默认配置文件之上
buildUponDefaultConfig = false
//规则集
config.setFrom("${configPath}/detekt.yml")
//指定基准文件。在detekt的后续运行中所有发现都存储在此文件中
// baseline = file("${configPath}/baseline.xml")
disableDefaultRuleSets = false
ignoreFailures = true
// Android: Don't create tasks for the specified build types (e.g. "release")
// ignoredBuildTypes = ["release"]
@@ -33,11 +34,11 @@ tasks.named("detekt").configure {
html {
enabled = true
// Path where HTML report will be stored (default: `build/reports/detekt/detekt.html`)
destination = new File(new File("${project.rootProject.buildDir.path}/reports/detekt"), "${project.name}-detekt.xml")
destination = new File(new File("${project.rootProject.buildDir.path}/reports/detekt"), "${project.name}-detekt.html")
}
xml {
enabled = true
destination = new File(new File("${project.rootProject.buildDir.path}/reports/detekt"), "${project.name}-detekt.html")
destination = new File(new File("${project.rootProject.buildDir.path}/reports/detekt"), "${project.name}-detekt.xml")
}
txt {
enabled = false

View File

@@ -40,7 +40,7 @@ output-reports:
exclude:
# - 'TxtOutputReport'
# - 'XmlOutputReport'
- 'HtmlOutputReport'
# - 'HtmlOutputReport'
# - 'MdOutputReport'
# - 'SarifOutputReport'