2019-01-29 16:42:10 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
<lint>
|
|
|
|
<issue id="InvalidPackage">
|
|
|
|
<!-- The Sentry SDK is compiled against parts of the Java SDK that are not available in the Android SDK.
|
|
|
|
Let's just ignore issues in the Sentry code since that is a third-party dependency anyways. -->
|
|
|
|
<ignore path="**/sentry*.jar" />
|
|
|
|
</issue>
|
2020-10-05 17:25:26 +00:00
|
|
|
|
2020-07-17 22:17:16 +00:00
|
|
|
<!-- Lints that don't apply to our translation process -->
|
2019-04-11 15:49:20 +00:00
|
|
|
<issue id="MissingTranslation" severity="ignore" />
|
2020-07-17 22:17:16 +00:00
|
|
|
<issue id="PluralsCandidate" severity="ignore" />
|
|
|
|
<issue id="StringFormatCount" severity="ignore" />
|
|
|
|
<issue id="TypographyEllipsis" severity="ignore" />
|
2019-04-22 18:24:49 +00:00
|
|
|
<issue id="ExtraTranslation" severity="warning" />
|
2020-10-05 17:25:26 +00:00
|
|
|
|
2020-07-17 22:17:16 +00:00
|
|
|
<!-- Lints that are disabled by default -->
|
|
|
|
<issue id="ConvertToWebp" severity="warning" />
|
2020-10-05 17:25:26 +00:00
|
|
|
|
|
|
|
<!-- Performance: we haven't validated that addressing these checks have a significant impact
|
|
|
|
on performance but they're very quick to fix so we escalate them to error. -->
|
2020-10-05 17:58:42 +00:00
|
|
|
<!-- Performance: big wins from a theoretical perspective so we escalate to error. -->
|
|
|
|
<issue id="DrawAllocation" severity="error" />
|
|
|
|
<issue id="Wakelock" severity="error" />
|
|
|
|
<issue id="WakelockTimeout" severity="error" />
|
|
|
|
<issue id="Recycle" severity="error" />
|
|
|
|
<issue id="StaticFieldLeak" severity="error" />
|
|
|
|
<issue id="ViewTag" severity="error" />
|
|
|
|
<issue id="ViewHolder" severity="error" />
|
|
|
|
<issue id="HandlerLeak" severity="error" />
|
|
|
|
<issue id="NestedWeights" severity="error" />
|
|
|
|
|
|
|
|
<!-- Performance: quick-to-fix violations so we escalate to error.
|
|
|
|
We haven't validated that they have a significant impact though. -->
|
|
|
|
<issue id="ObsoleteLayoutParam" severity="error" />
|
|
|
|
<issue id="ObsoleteSdkInt" severity="error" />
|
|
|
|
<issue id="AnimatorKeep" severity="error" />
|
|
|
|
<issue id="DuplicateDivider" severity="error" />
|
|
|
|
<issue id="MergeRootFrame" severity="error" />
|
|
|
|
<issue id="UseOfBundledGooglePlayServices" severity="error" />
|
|
|
|
<issue id="UseValueOf" severity="error" />
|
2020-10-05 17:25:26 +00:00
|
|
|
<issue id="InefficientWeight" severity="error" />
|
2020-10-05 17:58:42 +00:00
|
|
|
<issue id="DisableBaselineAlignment" severity="error" />
|
|
|
|
<issue id="UselessLeaf" severity="error" />
|
|
|
|
<issue id="UselessParent" severity="error" />
|
|
|
|
<issue id="UnusedNamespace" severity="error" />
|
|
|
|
|
|
|
|
<!-- Performance: checks we'd like to eventually set to error. -->
|
|
|
|
<issue id="UseCompoundDrawables" severity="warning" />
|
|
|
|
<issue id="Overdraw" severity="warning" />
|
2021-10-12 10:53:10 +00:00
|
|
|
<issue id="UnusedResources" severity="error">
|
|
|
|
<!-- Using an automated process to remove localized strings after they are removed from the default strings.xml
|
|
|
|
means the files for localized strings will contain unused resources for a few days after the original removal operation. -->
|
|
|
|
<ignore path="**/values-*/strings.xml" />
|
|
|
|
</issue>
|
2020-10-05 17:58:42 +00:00
|
|
|
|
|
|
|
<!-- Performance: checks that we're unsure of the value of that we might want to investigate. -->
|
|
|
|
<issue id="UnpackedNativeCode" severity="informational" />
|
|
|
|
<issue id="LogConditional" severity="informational" />
|
|
|
|
<issue id="VectorPath" severity="informational" />
|
|
|
|
<issue id="UseSparseArrays" severity="informational" /> <!-- hurts developer convenience of kotlin Map... -->
|
|
|
|
<issue id="TooDeepLayout" severity="warning" /> <!-- depth can be customized -->
|
|
|
|
<issue id="TooManyViews" severity="warning" /> <!-- view count can be customized -->
|
|
|
|
|
2020-12-04 15:21:16 +00:00
|
|
|
<!-- Correctness: checks with increased severity -->
|
|
|
|
<issue id="PrivateResource" severity="error" />
|
2019-01-29 16:42:10 +00:00
|
|
|
</lint>
|
|
|
|
|