Check android lint violations against current baseline

pull/1785/head
Quentin Hibon 2 years ago
parent 9f66a27b82
commit 25cff3d9b0

@ -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
} }

@ -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
Loading…
Cancel
Save