[6.1.0] fix bug of detekt html output
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -40,7 +40,7 @@ output-reports:
|
||||
exclude:
|
||||
# - 'TxtOutputReport'
|
||||
# - 'XmlOutputReport'
|
||||
- 'HtmlOutputReport'
|
||||
# - 'HtmlOutputReport'
|
||||
# - 'MdOutputReport'
|
||||
# - 'SarifOutputReport'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user