Skip to content

Commit

Permalink
Merge pull request iSoron#1785 from hiqua/android_lint_baseline
Browse files Browse the repository at this point in the history
Check android lint violations against current baseline
  • Loading branch information
iSoron authored Apr 5, 2024
2 parents 06090e2 + 7cb32f4 commit c216fb0
Show file tree
Hide file tree
Showing 3 changed files with 8,259 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ fail() {
core_build() {
log_info "Building uhabits-core..."
$GRADLE ktlintCheck || fail
$GRADLE lintDebug || fail
$GRADLE :uhabits-core:build || fail
}

Expand Down
6 changes: 6 additions & 0 deletions uhabits-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ android {
buildFeatures {
viewBinding = true
}

lint {
baseline = file("lint-baseline.xml")
disable += "GradleDependency"
warningsAsErrors = true
}
}

dependencies {
Expand Down
Loading

0 comments on commit c216fb0

Please sign in to comment.