0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 11:32:15 +02:00
Anki-Android/lint.gradle
David Allison 2478135b20 chore(lint): cleanup CI output on failure
'WrongThread' output 100+ lines of 'Information' which obscured the
error

Remove these in CI

Fixes 14853
2023-11-30 20:40:45 -05:00

20 lines
583 B
Groovy

// see .editorconfig for ktlint-related rules
android {
lint {
abortOnError true
checkReleaseBuilds true
checkTestSources true
explainIssues false
lintConfig file('../lint-release.xml')
showAll true
// To output the lint report to stdout set textReport=true, and leave textOutput unset.
textReport true
warningsAsErrors true
if (System.getenv("CI") == "true") {
// 14853: we want this to appear in the IDE, but it adds noise to CI
disable += "WrongThread"
}
}
}