Update GeckoView (Nightly) to 121.0.20231113091505.
[gecko.git] / mobile / android / fenix / app / lint.xml
blobf90a3647db0f66fd254667c19507651356965b7b
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <lint>
6     <issue id="InvalidPackage">
7         <!-- The Sentry SDK is compiled against parts of the Java SDK that are not available in the Android SDK.
8              Let's just ignore issues in the Sentry code since that is a third-party dependency anyways. -->
9         <ignore path="**/sentry*.jar" />
10     </issue>
12     <!-- Lints that don't apply to our translation process -->
13     <issue id="MissingTranslation" severity="ignore" />
14     <issue id="PluralsCandidate" severity="ignore" />
15     <issue id="StringFormatCount" severity="ignore" />
16     <issue id="TypographyEllipsis" severity="ignore" />
17     <issue id="ExtraTranslation" severity="ignore" />
19     <!-- Lints that are disabled by default -->
20     <issue id="ConvertToWebp" severity="warning" />
22     <!-- Performance: we haven't validated that addressing these checks have a significant impact
23          on performance but they're very quick to fix so we escalate them to error. -->
24     <!-- Performance: big wins from a theoretical perspective so we escalate to error. -->
25     <issue id="DrawAllocation" severity="error" />
26     <issue id="Wakelock" severity="error" />
27     <issue id="WakelockTimeout" severity="error" />
28     <issue id="Recycle" severity="error" />
29     <issue id="StaticFieldLeak" severity="error" />
30     <issue id="ViewTag" severity="error" />
31     <issue id="ViewHolder" severity="error" />
32     <issue id="HandlerLeak" severity="error" />
33     <issue id="NestedWeights" severity="error" />
35     <!-- Performance: quick-to-fix violations so we escalate to error.
36          We haven't validated that they have a significant impact though. -->
37     <issue id="ObsoleteLayoutParam" severity="error" />
38     <issue id="ObsoleteSdkInt" severity="error" />
39     <issue id="AnimatorKeep" severity="error" />
40     <issue id="DuplicateDivider" severity="error" />
41     <issue id="MergeRootFrame" severity="error" />
42     <issue id="UseOfBundledGooglePlayServices" severity="error" />
43     <issue id="UseValueOf" severity="error" />
44     <issue id="InefficientWeight" severity="error" />
45     <issue id="DisableBaselineAlignment" severity="error" />
46     <issue id="UselessLeaf" severity="error" />
47     <issue id="UselessParent" severity="error" />
48     <issue id="UnusedNamespace" severity="error" />
50     <!-- Performance: checks we'd like to eventually set to error. -->
51     <issue id="UseCompoundDrawables" severity="warning" />
52     <issue id="Overdraw" severity="warning" />
53     <issue id="UnusedResources" severity="error">
54         <!-- Using an automated process to remove localized strings after they are removed from the default strings.xml
55         means the files for localized strings will contain unused resources for a few days after the original removal operation. -->
56         <ignore path="**/values-*/strings.xml" />
57     </issue>
59     <!-- Performance: checks that we're unsure of the value of that we might want to investigate. -->
60     <issue id="UnpackedNativeCode" severity="informational" />
61     <issue id="LogConditional" severity="informational" />
62     <issue id="VectorPath" severity="informational" />
63     <issue id="UseSparseArrays" severity="informational" /> <!-- hurts developer convenience of kotlin Map... -->
64     <issue id="TooDeepLayout" severity="warning" /> <!-- depth can be customized -->
65     <issue id="TooManyViews" severity="warning" /> <!-- view count can be customized -->
67     <!-- Correctness: checks with increased severity -->
68     <issue id="PrivateResource" severity="error" />
69 </lint>