summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2023-12-15 08:35:45 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2023-12-15 17:27:05 +0100
commiteaa8327c960591bf113f624be2fc81af00d08090 (patch)
tree1b6dfb340bdf1d3f8eaddb8e2013880c79af5794
parent92b7f110a9a4b61c01a921bfa65b3951a8386b62 (diff)
android lint: Ignore missing translations
Translations are handled in Weblate now, so missing translations are tracked there. Therefore, ignore them in the lint check, since there's no added value in having them listed in the `android/source/lint-baseline.xml` file in addition any more. Change-Id: I82945c0eebe015ca9695813dd19613108884c648 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160816 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--android/source/build.gradle10
1 files changed, 7 insertions, 3 deletions
diff --git a/android/source/build.gradle b/android/source/build.gradle
index ce7bba57633b..b89efc3d00fd 100644
--- a/android/source/build.gradle
+++ b/android/source/build.gradle
@@ -90,9 +90,13 @@ android {
}
lint {
warningsAsErrors true
- // don't error-out on missing translations or external updates (new translations,
- // new gradle plugin, library versions or target API become available)
- informational 'AndroidGradlePluginVersion', 'GradleDependency', 'MissingTranslation', 'NewerVersionAvailable', 'OldTargetApi', 'TypographyEllipsis'
+ // ignore missing translations, since these are tracked in Weblate already
+ ignore 'MissingTranslation'
+ // don't error-out on external updates (new gradle plugin, library versions
+ // or target API become available)
+ // don't error-out on TypographyEllipsis, since this can be introduced with
+ // new translations, and those are handled in Weblate
+ informational 'AndroidGradlePluginVersion', 'GradleDependency', 'NewerVersionAvailable', 'OldTargetApi', 'TypographyEllipsis'
// don't fail on pre-existing issues
// These should be dealt with at some point, though.
// To update lint-baseline.xml, just remove the file and run the build again.