2019-04-03 18:04:24 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<lint>
|
|
|
|
<!-- Modify some severity -->
|
|
|
|
|
|
|
|
<!-- Resource -->
|
2021-03-04 01:17:09 +08:00
|
|
|
<issue id="MissingTranslation" severity="ignore" />
|
2019-04-03 18:04:24 +08:00
|
|
|
<issue id="TypographyEllipsis" severity="error" />
|
|
|
|
<issue id="ImpliedQuantity" severity="warning" />
|
2022-03-03 17:22:59 +08:00
|
|
|
<issue id="MissingQuantity" severity="warning" />
|
2020-08-13 18:15:15 +08:00
|
|
|
<issue id="UnusedQuantity" severity="error" />
|
2020-02-27 21:35:57 +08:00
|
|
|
<issue id="IconXmlAndPng" severity="error" />
|
2020-02-27 21:43:07 +08:00
|
|
|
<issue id="IconDipSize" severity="error" />
|
|
|
|
<issue id="IconDuplicatesConfig" severity="error" />
|
2020-02-27 21:56:18 +08:00
|
|
|
<issue id="IconDuplicates" severity="error" />
|
2020-02-27 22:11:43 +08:00
|
|
|
<issue id="IconExpectedSize" severity="error" />
|
2021-03-11 01:36:23 +08:00
|
|
|
<issue id="LocaleFolder" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
|
2022-02-25 05:03:42 +08:00
|
|
|
<!-- String resource has to be used, for the rest we can ignore for now
|
2022-02-25 05:45:02 +08:00
|
|
|
TODO: stop ignoring warning at all those locations -->
|
2022-02-25 05:03:42 +08:00
|
|
|
<issue id="UnusedResources" severity="error">
|
|
|
|
<ignore path="**/build.gradle" />
|
|
|
|
<ignore path="**/anim/**" />
|
|
|
|
<ignore path="**/color/**" />
|
|
|
|
<ignore path="**/drawable*/**" />
|
|
|
|
<ignore path="**/layout/**" />
|
|
|
|
<ignore path="**/menu/**" />
|
|
|
|
<ignore path="**/raw/**" />
|
|
|
|
<ignore path="**/values/dimens.xml" />
|
|
|
|
<ignore path="**/values/colors.xml" />
|
|
|
|
<ignore path="**/values/palette.xml" />
|
|
|
|
<ignore path="**/values/palette_mobile.xml" />
|
|
|
|
<ignore path="**/values/donottranslate.xml" />
|
|
|
|
<ignore path="**/values/strings_login_v2.xml" />
|
|
|
|
<ignore path="**/library/ui-styles/src/main/res/values/**" />
|
|
|
|
<ignore path="**/xml/**" />
|
2022-02-25 05:45:02 +08:00
|
|
|
|
|
|
|
<!-- Following resources are for F-Droid variant only, so ignore for GPlay -->
|
|
|
|
<ignore regexp="settings_troubleshoot_test_service_boot_*" />
|
|
|
|
<ignore regexp="settings_troubleshoot_test_bg_restricted_*" />
|
|
|
|
<ignore regexp="settings_troubleshoot_test_battery_*" />
|
|
|
|
|
|
|
|
<!-- Following resources are for GPlay variant only, so ignore for F-Droid -->
|
|
|
|
<ignore regexp="settings_troubleshoot_test_play_services_" />
|
|
|
|
<ignore regexp="settings_troubleshoot_test_push_loop_" />
|
|
|
|
<ignore regexp="settings_troubleshoot_test_token_registration_" />
|
|
|
|
<ignore regexp="settings_troubleshoot_test_fcm_" />
|
|
|
|
<ignore regexp="no_valid_google_play_services_apk" />
|
|
|
|
<ignore regexp="sas_error_unknown" />
|
2022-02-25 05:03:42 +08:00
|
|
|
</issue>
|
|
|
|
|
2019-04-03 18:04:24 +08:00
|
|
|
<!-- UX -->
|
|
|
|
<issue id="ButtonOrder" severity="error" />
|
2020-03-05 18:09:58 +08:00
|
|
|
<issue id="TextFields" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
|
2021-02-12 21:35:28 +08:00
|
|
|
<!-- Accessibility -->
|
|
|
|
<issue id="LabelFor" severity="error" />
|
2021-02-13 03:18:34 +08:00
|
|
|
<issue id="ContentDescription" severity="error" />
|
2021-09-14 21:57:24 +08:00
|
|
|
<issue id="SpUsage" severity="error" />
|
2021-02-12 21:35:28 +08:00
|
|
|
|
2019-04-03 18:04:24 +08:00
|
|
|
<!-- Layout -->
|
|
|
|
<issue id="UnknownIdInLayout" severity="error" />
|
|
|
|
<issue id="StringFormatCount" severity="error" />
|
|
|
|
<issue id="HardcodedText" severity="error" />
|
|
|
|
<issue id="ObsoleteLayoutParam" severity="error" />
|
|
|
|
<issue id="InefficientWeight" severity="error" />
|
|
|
|
<issue id="DisableBaselineAlignment" severity="error" />
|
|
|
|
<issue id="ScrollViewSize" severity="error" />
|
2020-02-27 22:11:43 +08:00
|
|
|
<issue id="NegativeMargin" severity="error" />
|
2020-10-08 15:30:25 +08:00
|
|
|
<issue id="UseCompatTextViewDrawableXml" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
|
|
|
|
<!-- RTL -->
|
|
|
|
<issue id="RtlEnabled" severity="error" />
|
2020-08-14 00:49:19 +08:00
|
|
|
<issue id="RtlHardcoded" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
<issue id="RtlSymmetry" severity="error" />
|
|
|
|
|
|
|
|
<!-- Code -->
|
2022-01-17 18:48:58 +08:00
|
|
|
<issue id="NewApi" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
<issue id="SetTextI18n" severity="error" />
|
|
|
|
<issue id="ViewConstructor" severity="error" />
|
|
|
|
<issue id="UseValueOf" severity="error" />
|
2020-08-18 06:44:50 +08:00
|
|
|
<issue id="ObsoleteSdkInt" severity="error" />
|
2020-02-27 21:30:49 +08:00
|
|
|
<issue id="Recycle" severity="error" />
|
2020-02-27 22:27:46 +08:00
|
|
|
<issue id="KotlinPropertyAccess" severity="error" />
|
2020-12-03 00:04:54 +08:00
|
|
|
<issue id="DefaultLocale" severity="error" />
|
2021-09-11 00:14:39 +08:00
|
|
|
<issue id="CheckResult" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
|
2019-12-19 17:46:11 +08:00
|
|
|
<issue id="InvalidPackage">
|
2020-08-15 03:33:46 +08:00
|
|
|
<!-- Ignore error from HtmlCompressor lib -->
|
2020-02-27 22:27:46 +08:00
|
|
|
<ignore path="**/htmlcompressor-1.4.jar" />
|
2020-08-15 03:33:46 +08:00
|
|
|
<!-- Ignore error from dropbox-core-sdk-3.0.8 lib, which comes with Jitsi library -->
|
|
|
|
<ignore path="**/dropbox-core-sdk-3.0.8.jar" />
|
2019-12-19 17:46:11 +08:00
|
|
|
</issue>
|
2020-02-27 22:41:35 +08:00
|
|
|
|
|
|
|
<!-- Manifest -->
|
|
|
|
<issue id="PermissionImpliesUnsupportedChromeOsHardware" severity="error" />
|
2020-03-05 17:40:36 +08:00
|
|
|
|
2021-06-11 16:19:42 +08:00
|
|
|
<!-- Performance -->
|
|
|
|
<issue id="UselessParent" severity="error" />
|
|
|
|
|
2020-12-02 19:46:15 +08:00
|
|
|
<!-- Dependencies -->
|
|
|
|
<issue id="KtxExtensionAvailable" severity="error" />
|
|
|
|
|
2020-03-05 17:40:36 +08:00
|
|
|
<!-- Timber -->
|
2020-03-11 18:19:22 +08:00
|
|
|
<!-- This rule is failing on CI because it's marked as unknwown rule id :/-->
|
|
|
|
<!-- <issue id="BinaryOperationInTimber" severity="error" />-->
|
2021-11-17 21:18:02 +08:00
|
|
|
<issue id="LogNotTimber" severity="error" />
|
2020-03-05 18:02:14 +08:00
|
|
|
|
|
|
|
<!-- Wording -->
|
2021-03-04 01:17:09 +08:00
|
|
|
<issue id="Typos" severity="error" />
|
2022-01-04 19:47:46 +08:00
|
|
|
<issue id="TypographyDashes" severity="error" />
|
2021-03-04 02:35:46 +08:00
|
|
|
|
2021-11-19 22:29:11 +08:00
|
|
|
<!-- DI -->
|
|
|
|
<issue id="JvmStaticProvidesInObjectDetector" severity="error" />
|
2019-04-03 18:04:24 +08:00
|
|
|
</lint>
|