0

我正在尝试gradlew detekt在多项目 Kotlin 构建上运行。build.gradle根据detekt doc,我已将以下内容添加到顶层

plugins {
    // ... other plugins
    id "io.gitlab.arturbosch.detekt" version "1.19.0-RC2"
}

allprojects {
    // ... other plugins
    apply plugin: 'io.gitlab.arturbosch.detekt'
}

detekt {
    // If set to `true` the build does not fail when the
    // maxIssues count was reached. Defaults to `false`.
    ignoreFailures = true
}

但是当我运行任务时,它会在分析第一个有任何问题的子项目后停止。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':some-subproject:detekt'.
> Build failed with 9 weighted issues.

如果我修复所有这些并重新运行gradlew detekt,它将通过该项目,但在下一个项目中失败,> 0 个问题,依此类推。

detekt无论发现多少问题,我如何才能一次分析整个项目。

4

0 回答 0