-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathlint.gradle
More file actions
21 lines (19 loc) · 707 Bytes
/
lint.gradle
File metadata and controls
21 lines (19 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// see .editorconfig for ktlint-related rules
// TODO: move to buildSrc when api/ has a convention plugin and AnkiDroid/build.gradle is converted to .kts
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"
}
}
}