Skip to content

Instantly share code, notes, and snippets.

@SelfFormat
Last active March 31, 2021 07:53
Show Gist options
  • Save SelfFormat/e83e1efc50956d6b2e31a02033220fc0 to your computer and use it in GitHub Desktop.
Save SelfFormat/e83e1efc50956d6b2e31a02033220fc0 to your computer and use it in GitHub Desktop.
detekt multi module baseline generating task
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)
}
@SelfFormat
Copy link
Author

you need this additional gist also in order this one to work:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment