diff --git a/codequality/detekt.gradle b/codequality/detekt.gradle index e57ef8c5cc..bc451259e5 100644 --- a/codequality/detekt.gradle +++ b/codequality/detekt.gradle @@ -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 diff --git a/codequality/detekt.yml b/codequality/detekt.yml index 327c7525c2..3128e1d0d2 100644 --- a/codequality/detekt.yml +++ b/codequality/detekt.yml @@ -40,7 +40,7 @@ output-reports: exclude: # - 'TxtOutputReport' # - 'XmlOutputReport' - - 'HtmlOutputReport' + # - 'HtmlOutputReport' # - 'MdOutputReport' # - 'SarifOutputReport'