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:
macgills 2019-07-08 15:05:49 +01:00 committed by GitHub
commit aa0acb2123
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 16753 additions and 15 deletions

View File

@ -226,20 +226,13 @@ android {
testBuildType "debug"
lintOptions {
// Treat lint seriously
abortOnError true
// Hardcoded strings in xml
error "HardcodedText"
// Hardcoded strings in setText
error "SetTextI18n"
// Strings.xml issues
warning "ExtraTranslation"
warning "MissingTranslation"
// Warnings
warning "InvalidPackage"
warning "StringFormatInvalid"
checkAllWarnings true
warningsAsErrors true
ignore 'MissingTranslation' //TODO stop ignoring
baseline file("lint-baseline.xml")
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {

16748
app/lint-baseline.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
values-id

View File

@ -1 +0,0 @@
values-he

View File

@ -1 +0,0 @@
values-yi