mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-23 04:33:54 -04:00
Merge pull request #1252 from kiwix/feature/macgills/#98-lint
#98 add baseline lint to ignore existing issues, aggressively mark al…
This commit is contained in:
commit
aa0acb2123
@ -226,20 +226,13 @@ android {
|
|||||||
testBuildType "debug"
|
testBuildType "debug"
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
// Treat lint seriously
|
|
||||||
abortOnError true
|
abortOnError true
|
||||||
// Hardcoded strings in xml
|
checkAllWarnings true
|
||||||
error "HardcodedText"
|
warningsAsErrors true
|
||||||
// Hardcoded strings in setText
|
ignore 'MissingTranslation' //TODO stop ignoring
|
||||||
error "SetTextI18n"
|
baseline file("lint-baseline.xml")
|
||||||
// Strings.xml issues
|
|
||||||
warning "ExtraTranslation"
|
|
||||||
warning "MissingTranslation"
|
|
||||||
|
|
||||||
// Warnings
|
|
||||||
warning "InvalidPackage"
|
|
||||||
warning "StringFormatInvalid"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testOptions {
|
testOptions {
|
||||||
unitTests.returnDefaultValues = true
|
unitTests.returnDefaultValues = true
|
||||||
unitTests.all {
|
unitTests.all {
|
||||||
|
16748
app/lint-baseline.xml
Normal file
16748
app/lint-baseline.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -1 +0,0 @@
|
|||||||
values-id
|
|
@ -1 +0,0 @@
|
|||||||
values-he
|
|
@ -1 +0,0 @@
|
|||||||
values-yi
|
|
Loading…
x
Reference in New Issue
Block a user