Last active
March 31, 2021 07:53
-
-
Save SelfFormat/e83e1efc50956d6b2e31a02033220fc0 to your computer and use it in GitHub Desktop.
detekt multi module baseline generating task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.register("detektGenerateBaseline", io.gitlab.arturbosch.detekt.DetektCreateBaselineTask) { | |
description = "Custom DETEKT build to build baseline for all modules" | |
parallel = true | |
ignoreFailures = false | |
buildUponDefaultConfig = true | |
setSource(projectSource) | |
baseline.set(baselineFile) | |
config.setFrom(configFile) | |
include(kotlinFiles) | |
exclude(resourceFiles, buildFiles) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need this additional gist also in order this one to work: