Check android lint violations against current baseline

This commit is contained in:
Quentin Hibon
2023-08-07 23:04:37 +02:00
parent 9f66a27b82
commit 25cff3d9b0
3 changed files with 7972 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ fail() {
core_build() { core_build() {
log_info "Building uhabits-core..." log_info "Building uhabits-core..."
$GRADLE ktlintCheck || fail $GRADLE ktlintCheck || fail
$GRADLE lintDebug || fail
$GRADLE :uhabits-core:build || fail $GRADLE :uhabits-core:build || fail
} }

View File

@@ -76,6 +76,11 @@ android {
buildFeatures { buildFeatures {
viewBinding = true viewBinding = true
} }
lint {
baseline = file("lint-baseline.xml")
warningsAsErrors = true
}
} }
dependencies { dependencies {

File diff suppressed because it is too large Load Diff