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" 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

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