element-android-Github/vector/lint.xml

91 lines
3.5 KiB
XML
Raw Normal View History

2019-04-03 18:04:24 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<!-- Modify some severity -->
<!-- Resource -->
<issue id="MissingTranslation" severity="ignore" />
2019-04-03 18:04:24 +08:00
<issue id="TypographyEllipsis" severity="error" />
<issue id="ImpliedQuantity" severity="warning" />
<issue id="UnusedQuantity" severity="error" />
2020-02-27 21:35:57 +08:00
<issue id="IconXmlAndPng" severity="error" />
<issue id="IconDipSize" severity="error" />
<issue id="IconDuplicatesConfig" severity="error" />
<issue id="IconDuplicates" severity="error" />
2020-02-27 22:11:43 +08:00
<issue id="IconExpectedSize" severity="error" />
<issue id="LocaleFolder" severity="error" />
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
<!-- Accessibility -->
<issue id="LabelFor" severity="error" />
<issue id="ContentDescription" severity="error" />
2021-09-14 21:57:24 +08:00
<issue id="SpUsage" severity="error" />
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" />
<issue id="UseCompatTextViewDrawableXml" severity="error" />
2019-04-03 18:04:24 +08:00
<!-- RTL -->
<issue id="RtlEnabled" severity="error" />
<issue id="RtlHardcoded" severity="error" />
2019-04-03 18:04:24 +08:00
<issue id="RtlSymmetry" severity="error" />
<!-- Code -->
<issue id="SetTextI18n" severity="error" />
<issue id="ViewConstructor" severity="error" />
<issue id="UseValueOf" severity="error" />
<issue id="ObsoleteSdkInt" severity="error" />
<issue id="Recycle" severity="error" />
<issue id="KotlinPropertyAccess" severity="error" />
2020-12-03 00:04:54 +08:00
<issue id="DefaultLocale" severity="error" />
<issue id="CheckResult" severity="error" />
2019-04-03 18:04:24 +08:00
2019-12-19 17:46:11 +08:00
<issue id="InvalidPackage">
<!-- Ignore error from HtmlCompressor lib -->
<ignore path="**/htmlcompressor-1.4.jar" />
<!-- 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>
<!-- Manifest -->
<issue id="PermissionImpliesUnsupportedChromeOsHardware" severity="error" />
2021-06-11 16:19:42 +08:00
<!-- Performance -->
<issue id="UselessParent" severity="error" />
<!-- Dependencies -->
<issue id="KtxExtensionAvailable" severity="error" />
<!-- 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" />
<!-- Wording -->
<issue id="Typos" severity="error" />
<!-- Ignore lint issue in generated resource file from templates.
https://github.com/LikeTheSalad/android-string-reference generates string from the default language
if the translation is missing, and it can lead to typos. Lint should only check the string from the
original file, so with id starting by `template_`. -->
<issue id="all">
<ignore path="**/generated/resolved/**/resolved.xml" />
</issue>
2021-05-19 03:23:50 +08:00
<!-- Bug in lint agp 4.1 incorrectly thinks kotlin forEach is using java 8 API's. -->
<!-- FIXME this workaround should be removed in a near future -->
<issue id="NewApi" severity="warning" />
<!-- DI -->
<issue id="JvmStaticProvidesInObjectDetector" severity="error" />
2019-04-03 18:04:24 +08:00
</lint>