Skip to content

Instantly share code, notes, and snippets.

@Barros9
Last active November 6, 2020 08:59
Show Gist options
  • Save Barros9/aa8ab4210b8551b6ed503b7bdfd8ddef to your computer and use it in GitHub Desktop.
Save Barros9/aa8ab4210b8551b6ed503b7bdfd8ddef to your computer and use it in GitHub Desktop.
Configure Detekt
plugins {
id("io.gitlab.arturbosch.detekt").version("1.14.2")
}
detekt {
toolVersion = "1.14.2"
input = files("$projectDir")
config = files("$project.projectDir/config/detekt.yml")
reports {
xml {
enabled = true
destination = file("$project.projectDir/detekt-report.xml")
}
html {
enabled = true
destination = file("$project.projectDir/detekt-report.html")
}
}
}
@Barros9
Copy link
Author

Barros9 commented Nov 6, 2020

  • Copy plugins
  • Run "gradlew detektGenerateConfig" task to generate default detekt config file
  • Copy detekt task

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