summaryrefslogtreecommitdiffstats
path: root/mobile/android/android-components/android-lint.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/android-components/android-lint.gradle')
-rw-r--r--mobile/android/android-components/android-lint.gradle19
1 files changed, 19 insertions, 0 deletions
diff --git a/mobile/android/android-components/android-lint.gradle b/mobile/android/android-components/android-lint.gradle
new file mode 100644
index 0000000000..a7d1ab8e72
--- /dev/null
+++ b/mobile/android/android-components/android-lint.gradle
@@ -0,0 +1,19 @@
+android {
+ lint {
+ warningsAsErrors true
+ abortOnError (project.name != "support-test")
+
+ // With our L10N process its totally possible to have missing or (temporarily) extra translations.
+ disable 'MissingTranslation',
+ 'ExtraTranslation',
+ // We do not want to enforce this as a generic rule for all languages (see #6117, #6056, #6118)
+ 'TypographyEllipsis',
+ // https://github.com/mozilla-mobile/android-components/issues/10641
+ 'UnspecifiedImmutableFlag',
+ // https://github.com/mozilla-mobile/android-components/issues/10643
+ 'UnusedResources',
+ // "We do not impose rules on locales"
+ // https://github.com/mozilla-mobile/android-components/pull/11069
+ 'TypographyDashes'
+ }
+}