Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Bug 1805070 - Part 3: Sync Focus detekt configuration with AC
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielluong authored and mergify[bot] committed May 19, 2023
1 parent 0b162b9 commit 475d011
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 147 deletions.
28 changes: 26 additions & 2 deletions focus-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ buildscript {
}

plugins {
id "io.gitlab.arturbosch.detekt" version "1.19.0" // Variables in plugins {} aren't supported
id "io.gitlab.arturbosch.detekt" version "1.22.0" // Variables in plugins {} aren't supported
}

detekt {
buildUponDefaultConfig = true
input = files("$projectDir/app")
config = files("$projectDir/quality/detekt.yml")
baseline = file("$projectDir/quality/detekt-baseline.xml")
Expand All @@ -49,9 +48,34 @@ detekt {
enabled = true
destination = file("$projectDir/build/reports/detekt.html")
}
xml {
enabled = false
}
txt {
enabled = false
}
}
}

tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach() {
autoCorrect = true

exclude "**/test/**"
exclude "**/androidTest/**"
exclude "**/build/**"
exclude "**/resources/**"
exclude "**/tmp/**"
}

// Apply same path exclusions as for the main task
tasks.withType(io.gitlab.arturbosch.detekt.DetektCreateBaselineTask).configureEach() {
exclude "**/test/**"
exclude "**/androidTest/**"
exclude "**/build/**"
exclude "**/resources/**"
exclude "**/tmp/**"
}

allprojects {
repositories {
google()
Expand Down

0 comments on commit 475d011

Please sign in to comment.