Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Update detekt.
Browse files Browse the repository at this point in the history
  • Loading branch information
pocmo authored and mergify[bot] committed Apr 5, 2021
1 parent 5fe445e commit 649ceed
Show file tree
Hide file tree
Showing 7 changed files with 814 additions and 231 deletions.
2 changes: 1 addition & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tasks:
&& git checkout ${event.pull_request.head.sha}
&& echo "--" > .adjust_token
&& python tools/l10n/check_locales.py
&& ./gradlew --no-daemon clean assembleFocusDebug assembleKlarNightly assembleRelease detektCheck ktlint lintFocusDebug lintKlarNightly assembleFocusDebugAndroidTest testFocusDebugUnitTest testKlarNightlyUnitTest
&& ./gradlew --no-daemon clean assembleFocusDebug assembleKlarNightly assembleRelease detekt ktlint lintFocusDebug lintKlarNightly assembleFocusDebugAndroidTest testFocusDebugUnitTest testKlarNightlyUnitTest
&& pip install "compare-locales>=5.0.2,<6.0"
&& compare-locales --validate l10n.toml .
artifacts:
Expand Down
19 changes: 12 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,22 @@ plugins {
// limitations of the gradle plugin. We've decided to stick with duplication for now since the
// other methods involve using undocumented APIs
// https://docs.gradle.org/current/userguide/plugins.html#plugins_dsl_limitations
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC6-3"
id("io.gitlab.arturbosch.detekt").version("1.16.0")
}

detekt {
// The version number is duplicated, please refer to plugins block for more details
version = "1.0.0.RC6-3"
profile("main") {
input = "$projectDir"
config = "$projectDir/quality/detekt.yml"
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
output = "$projectDir/app/build/reports/detekt"
version = "1.16.0"
buildUponDefaultConfig = true
input = files("$projectDir/app")
config = files("$projectDir/quality/detekt.yml")
baseline = file("$projectDir/quality/detekt-baseline.xml")

reports {
html {
enabled = true
destination = file("$projectDir/build/reports/detekt.html")
}
}
}

Expand Down
208 changes: 208 additions & 0 deletions quality/detekt-baseline.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 649ceed

Please sign in to comment.