detekt.gradle 1.5 KB

1234567891011121314151617181920
  1. apply plugin: "io.gitlab.arturbosch.detekt"
  2. detekt {
  3. toolVersion = "1.10.0" // Version of the Detekt CLI that will be used. When unspecified the latest detekt version found will be used. Override to stay on the same version.
  4. input = files("src/main/java") // The directories where detekt looks for input files. Defaults to `files("src/main/java", "src/main/kotlin")`.
  5. parallel = true // Builds the AST in parallel. Rules are always executed in parallel. Can lead to speedups in larger projects. `false` by default.
  6. //filters = ".*build.*,.*/resources/.*,.*/tmp/.*" // Regular expression of paths that should be excluded separated by `;` or `,`.
  7. config = files("$rootDir/detekt-config.yml") // Define the detekt configuration(s) you want to use. Defaults to the default detekt configuration.
  8. baseline = file("$projectDir/detekt-baseline.xml")
  9. reports {
  10. xml {
  11. enabled = true // Enable/Disable XML report (default: true)
  12. destination = file("build/reports/detekt.xml") // Path where XML report will be stored (default: `build/reports/detekt/detekt.xml`)
  13. }
  14. html {
  15. enabled = true // Enable/Disable HTML report (default: true)
  16. destination = file("build/reports/detekt.html") // Path where HTML report will be stored (default: `build/reports/detekt/detekt.html`)
  17. }
  18. }
  19. }